aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-02-20 19:51:34 +0100
committerXavier Noria <fxn@hashref.com>2013-02-20 20:37:00 +0100
commit36113d0b79b2b827610aa8ed108b07bd88936ae5 (patch)
tree6883b3fd84f043ef957993b3cddcde111c5401f8 /activerecord
parent6b42e0fe250765110334ec6aff32a79c615f8a05 (diff)
downloadrails-36113d0b79b2b827610aa8ed108b07bd88936ae5.tar.gz
rails-36113d0b79b2b827610aa8ed108b07bd88936ae5.tar.bz2
rails-36113d0b79b2b827610aa8ed108b07bd88936ae5.zip
puts a lambda around a default scope [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 49d270a703..d79b1b62c1 100644
--- a/activerecord/CHANGELOG.md
+++ b/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