lib/preferences.rb in preferences-0.1.3 vs lib/preferences.rb in preferences-0.1.4

- old
+ new

@@ -19,16 +19,10 @@ # # u = User.find_by_login('admin') # u.attributes = {:prefers_notifications => true} # u.save! module Preferences - def self.included(base) #:nodoc: - base.class_eval do - extend PluginAWeek::Preferences::MacroMethods - end - end - module MacroMethods # Defines a new preference for all records in the model. By default, preferences # are assumed to have a boolean data type, so all values will be typecasted # to true/false based on ActiveRecord rules. # @@ -284,7 +278,7 @@ end end end ActiveRecord::Base.class_eval do - include PluginAWeek::Preferences + extend PluginAWeek::Preferences::MacroMethods end