Class: User::SignIn

Inherits:
UserPlane::Command show all
Includes:
ActiveModel::Validations::Callbacks
Defined in:
app/models/user/sign_in.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from UserPlane::Command

#perform, #perform!, #perform_validations

Instance Attribute Details

#ominauth_errorObject

Returns the value of attribute ominauth_error.



11
12
13
# File 'app/models/user/sign_in.rb', line 11

def ominauth_error
  @ominauth_error
end

Instance Method Details

#sign_in_with(strategy) ⇒ Object



31
32
33
34
35
# File 'app/models/user/sign_in.rb', line 31

def  strategy
  @strategy = strategy
  @identity = strategy.find_identity(self) if identity.nil?
  self
end