Module: Pushable::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/pushable/controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/concerns/pushable/controller.rb', line 5 def create if @device = user_has_device_already? update_token_expiration else @device = create_device_token end respond_with @device end |