Sha256: 01289821c830769af391edb4f7fdc0e1522e425828625ced6fcb0ae8af9a29c9
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
require 'active_support/core_ext/object/with_options' Devise.with_options :model => true do |d| # Strategies first d.with_options :strategy => true do |s| routes = [nil, :new, :destroy] s.add_module :database_authenticatable, :controller => :sessions, :route => { :session => routes } s.add_module :token_authenticatable, :controller => :sessions, :route => { :session => routes } s.add_module :rememberable end # Other authentications d.add_module :encryptable d.add_module :oauthable, :controller => :oauth_callbacks, :route => :oauth_callback # Misc after routes = [nil, :new, :edit] d.add_module :recoverable, :controller => :passwords, :route => { :password => routes } d.add_module :registerable, :controller => :registrations, :route => { :registration => (routes << :cancel) } d.add_module :validatable # The ones which can sign out after routes = [nil, :new] d.add_module :confirmable, :controller => :confirmations, :route => { :confirmation => routes } d.add_module :lockable, :controller => :unlocks, :route => { :unlock => routes } d.add_module :timeoutable # Stats for last, so we make sure the user is really signed in d.add_module :trackable end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
aihs_devise-1.2.rc | lib/devise/modules.rb |
gonow-devise-1.2.rc | lib/devise/modules.rb |
devise-edge-1.2.rc | lib/devise/modules.rb |