lib/devise.rb in devise-1.0.5 vs lib/devise.rb in devise-1.0.6

- old
+ new

@@ -27,11 +27,11 @@ end ALL = [] # Authentication ones first - ALL.push :authenticatable, :http_authenticatable, :token_authenticatable, :rememberable + ALL.push :database_authenticatable, :http_authenticatable, :token_authenticatable, :rememberable # Misc after ALL.push :recoverable, :registerable, :validatable # The ones which can sign out after @@ -40,20 +40,20 @@ # Stats for last, so we make sure the user is really signed in ALL.push :trackable # Maps controller names to devise modules. CONTROLLERS = { - :sessions => [:authenticatable, :token_authenticatable], + :sessions => [:database_authenticatable, :token_authenticatable], :passwords => [:recoverable], :confirmations => [:confirmable], :registrations => [:registerable], :unlocks => [:lockable] } # Routes for generating url helpers. ROUTES = [:session, :password, :confirmation, :registration, :unlock] - STRATEGIES = [:rememberable, :http_authenticatable, :token_authenticatable, :authenticatable] + STRATEGIES = [:rememberable, :http_authenticatable, :token_authenticatable, :database_authenticatable] TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE'] # Maps the messages types that are used in flash message. FLASH_MESSAGES = [:unauthenticated, :unconfirmed, :invalid, :invalid_token, :timeout, :inactive, :locked]