Class: Devise::Strategies::DummyAuthenticable

Inherits:
Authenticatable
  • Object
show all
Defined in:
lib/devise/strategies/dummy_authenticable.rb

Instance Method Summary collapse

Instance Method Details

#authenticate!Object



10
11
12
13
14
# File 'lib/devise/strategies/dummy_authenticable.rb', line 10

def authenticate!
  resource = mapping.to.first_or_create

  success!(resource)
end

#valid?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/devise/strategies/dummy_authenticable.rb', line 6

def valid?
  params['controller'] == 'sessions' && params['action'] == 'create'
end