Permalink
Browse files

Fixing Rails 4 deprecation warning

  • Loading branch information...
1 parent 60c9895 commit 14dfc702eb9425d3cb6c68329a98cc405eb8bbb7 @beerlington beerlington committed Feb 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/classy_enum/active_record_spec.rb
@@ -122,7 +122,7 @@ class OtherDog < Dog
class ActiveDog < Dog
classy_enum_attr :color
validates_uniqueness_of :name, :scope => :color
- scope :goldens, where(:breed => 'golden_retriever')
+ scope :goldens, lambda { where(:breed => 'golden_retriever') }
end
describe ActiveDog do

0 comments on commit 14dfc70

Please sign in to comment.