Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing Rails 4 deprecation warning

  • Loading branch information...
commit 14dfc702eb9425d3cb6c68329a98cc405eb8bbb7 1 parent 60c9895
@beerlington authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/classy_enum/active_record_spec.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.