Module: Devise::Models::PaypalPermissionsAuthable::ClassMethods

Defined in:
lib/devise_paypal/models/paypal_permissions_authable.rb

Instance Method Summary collapse

Instance Method Details

#new_with_session(params, session) ⇒ Object

A convenience method that receives both parameters and session to initialize an 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.



15
16
17
# File 'lib/devise_paypal/models/paypal_permissions_authable.rb', line 15

def new_with_session(params, session)
  new(params)
end