Permalink
Browse files

named_scope becomes scope in rails 3

  • Loading branch information...
1 parent 0140992 commit b7756d15cdf7998e57686d5efac96cb07c19a2f8 @jackdempsey committed May 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/preferences.rb
View
@@ -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

0 comments on commit b7756d1

Please sign in to comment.