Skip to content

Commit

Permalink
named_scope deprecated in Rails 3
Browse files Browse the repository at this point in the history
  • Loading branch information
rds committed Aug 24, 2011
1 parent 31c1a9b commit 37f02c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/preferences.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,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 37f02c1

Please sign in to comment.