Class: RubyNative::Push::DevicesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- RubyNative::Push::DevicesController
- Defined in:
- app/controllers/ruby_native/push/devices_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/ruby_native/push/devices_controller.rb', line 6 def create device = current_user.push_devices.find_or_initialize_by(token: params[:token]) device.update!(platform: params[:platform], name: params[:name]) head :ok end |