lib/devise/models.rb in devise-2.0.0.rc vs lib/devise/models.rb in devise-2.0.0.rc2

- old
+ new

@@ -46,17 +46,17 @@ # You can also give any of the devise configuration values in form of a hash, # with specific values for this model. Please check your Devise initializer # for a complete description on those values. # def devise(*modules) - include Devise::Models::Authenticatable options = modules.extract_options!.dup selected_modules = modules.map(&:to_sym).uniq.sort_by do |s| Devise::ALL.index(s) || -1 # follow Devise::ALL order end devise_modules_hook! do + include Devise::Models::Authenticatable selected_modules.each do |m| mod = Devise::Models.const_get(m.to_s.classify) if mod.const_defined?("ClassMethods") class_mod = mod.const_get("ClassMethods") \ No newline at end of file