Method: Devise::UnlocksController#create
- Defined in:
- app/controllers/devise/unlocks_controller.rb
#create {|resource| ... } ⇒ Object
POST /resource/unlock
12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/devise/unlocks_controller.rb', line 12 def create self.resource = resource_class.send_unlock_instructions(resource_params) yield resource if block_given? if successfully_sent?(resource) respond_with({}, location: after_sending_unlock_instructions_path_for(resource)) else respond_with(resource) end end |