diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-06 10:44:30 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-06 10:44:30 -0700 |
commit | a9da54988f11bf79e7df2275397aca468092ea05 (patch) | |
tree | 1f2ca6e74ab30bbc9a13ccd5e09426d77004a4e3 /guides/source | |
parent | ec8f59ca530316a14672686611c629abc4112950 (diff) | |
parent | 666a248b0c38ceb93a4dc2da76e28b0cbd7283df (diff) | |
download | rails-a9da54988f11bf79e7df2275397aca468092ea05.tar.gz rails-a9da54988f11bf79e7df2275397aca468092ea05.tar.bz2 rails-a9da54988f11bf79e7df2275397aca468092ea05.zip |
Merge pull request #10113 from Agis-/default_scopes_predicate
Deprecate ActiveRecord#Base.default_scopes?
Closes #10107
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 43529e3e96..101a4f5b42 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -1039,6 +1039,8 @@ For convenience `class_attribute` also defines an instance predicate which is th When `:instance_reader` is `false`, the instance predicate returns a `NoMethodError` just like the reader method. +If you do not want the instance predicate, pass `instance_predicate: false` and it will not be defined. + NOTE: Defined in `active_support/core_ext/class/attribute.rb` #### `cattr_reader`, `cattr_writer`, and `cattr_accessor` |