Skip to content

Commit

Permalink
Changed named_scope to simply scope for rails 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
garytaylor committed Apr 1, 2012
1 parent 5075424 commit 77afad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/preferences.rb
Expand Up @@ -160,8 +160,8 @@ def preference(name, *args)
after_save :update_preferences

# Named scopes
named_scope :with_preferences, lambda {|preferences| build_preference_scope(preferences)}
named_scope :without_preferences, lambda {|preferences| build_preference_scope(preferences, true)}
scope :with_preferences, lambda {|preferences| build_preference_scope(preferences)}
scope :without_preferences, lambda {|preferences| build_preference_scope(preferences, true)}

extend Preferences::ClassMethods
include Preferences::InstanceMethods
Expand Down

0 comments on commit 77afad0

Please sign in to comment.