Method: Devise::RegistrationsController#build_resource

Defined in:
app/controllers/devise/registrations_controller.rb

#build_resource(hash = {}) ⇒ Object (protected)

Build a devise resource passing in the session. Useful to move temporary session data to the newly created user.



99
100
101
# File 'app/controllers/devise/registrations_controller.rb', line 99

def build_resource(hash = {})
  self.resource = resource_class.new_with_session(hash, session)
end