aboutsummaryrefslogtreecommitdiffstats
path: root/RAILS_VERSION
diff options
context:
space:
mode:
authorTommaso Visconti <tommaso.visconti@gmail.com>2015-10-08 10:29:05 +0200
committerTommaso Visconti <tommaso.visconti@gmail.com>2015-10-08 10:29:05 +0200
commite2a4224352fa326c045c668850279f5b25e11530 (patch)
tree601e137fedd20cbde1b6f2324ca1c5208755bb88 /RAILS_VERSION
parenteaa0cb7924d5ffd0de04492a7198e0d79088aaae (diff)
downloadrails-e2a4224352fa326c045c668850279f5b25e11530.tar.gz
rails-e2a4224352fa326c045c668850279f5b25e11530.tar.bz2
rails-e2a4224352fa326c045c668850279f5b25e11530.zip
Modify the scope method documentation
Adds a paragraph to the documentation of the `ActiveRecord::Scoping::Named.scope` method, explaining that the method is intended to return an ActiveRecord::Relation object to be composable with other scopes. In the case that in the case that `nil` or `false` are returned, the method returns an `all` relation instead. This unexpected behaviour is mentioned in #19249 #14256 #21465 and #21882 and wasn't documented at all. This commit adds this documentation.
Diffstat (limited to 'RAILS_VERSION')
0 files changed, 0 insertions, 0 deletions