Class: Users::ConfirmationsController
- Inherits:
-
Devise::ConfirmationsController
- Object
- Devise::ConfirmationsController
- Users::ConfirmationsController
- Defined in:
- app/controllers/virgo/users/confirmations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/controllers/virgo/users/confirmations_controller.rb', line 3 def create self.resource = resource_class.send_confirmation_instructions(resource_params) if successfully_sent?(resource) respond_with({}, :location => virgo.after_resending_confirmation_instructions_path_for(resource_name)) else respond_with(resource) end end |
#resource_params ⇒ Object
13 14 15 16 |
# File 'app/controllers/virgo/users/confirmations_controller.rb', line 13 def resource_params params[:user].present? ? params.require(:user).permit(:email, :login, :password, :password_confirmation, :reset_password_token) : {} end |