lib/devise.rb in devise-0.6.2 vs lib/devise.rb in devise-0.6.3
- old
+ new
@@ -1,6 +1,10 @@
module Devise
+ autoload :Schema, 'devise/schema'
+ autoload :Mapping, 'devise/mapping'
+ autoload :FailureApp, 'devise/failure_app'
+
ALL = [:authenticatable, :confirmable, :recoverable, :rememberable,
:timeoutable, :trackable, :validatable].freeze
# Maps controller names to devise modules
CONTROLLERS = {
@@ -142,8 +146,10 @@
end
# Set the default_scope to nil, so it's overwritten when the first route is declared.
Warden::Manager.default_scope = nil
+require 'devise/controllers'
+require 'devise/encryptors'
require 'devise/strategies/base'
require 'devise/serializers/base'
require 'devise/rails'