Skip to content
Browse files

puts a lambda around a default scope [ci skip]

  • Loading branch information...
1 parent 6b42e0f commit 36113d0b79b2b827610aa8ed108b07bd88936ae5 @fxn fxn committed Feb 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/CHANGELOG.md
View
2 activerecord/CHANGELOG.md
@@ -361,7 +361,7 @@
to the update query.
class User < ActiveRecord::Base
- default_scope where(active: true)
+ default_scope -> { where(active: true) }
end
user = User.first

0 comments on commit 36113d0

Please sign in to comment.
Something went wrong with that request. Please try again.