lib/devise/models.rb in devise-0.4.2 vs lib/devise/models.rb in devise-0.4.3
- old
+ new
@@ -14,12 +14,10 @@
# 3) And an instance method stretches.
#
# To add the class methods you need to have a module ClassMethods defined
# inside the given class.
#
- def self.config(mod, accessor, default=nil) #:nodoc:
- Devise.send :"#{accessor}=", default
-
+ def self.config(mod, accessor) #:nodoc:
mod.class_eval <<-METHOD, __FILE__, __LINE__
def #{accessor}
self.class.#{accessor}
end
METHOD