Module: Devise::Models::Registerable::ClassMethods
- Defined in:
- lib/devise/models/registerable.rb
Instance Method Summary collapse
-
#new_with_session(params, session) ⇒ Object
A convenience method that receives both parameters and session to initialize a user.
Instance Method Details
#new_with_session(params, session) ⇒ Object
A convenience method that receives both parameters and session to initialize a user. This can be used by OAuth, for example, to send in the user token and be stored on initialization.
By default discards all information sent by the session by calling new with params.
19 20 21 |
# File 'lib/devise/models/registerable.rb', line 19 def new_with_session(params, session) new(params) end |