aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/scoping/default.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-05-25 15:58:16 +0100
committerJon Leighton <j@jonathanleighton.com>2012-06-15 19:15:36 +0100
commite030f26ad3de98205edec9d8b59ecca9508cb57d (patch)
treec57029efc255a81b6487803e02d2e38e0f0082b3 /activerecord/lib/active_record/scoping/default.rb
parent61826bcca3481a85649be714a91a45ca909f2726 (diff)
downloadrails-e030f26ad3de98205edec9d8b59ecca9508cb57d.tar.gz
rails-e030f26ad3de98205edec9d8b59ecca9508cb57d.tar.bz2
rails-e030f26ad3de98205edec9d8b59ecca9508cb57d.zip
Simplify AR configuration code.
Get rid of ActiveModel::Configuration, make better use of ActiveSupport::Concern + class_attribute, etc.
Diffstat (limited to 'activerecord/lib/active_record/scoping/default.rb')
-rw-r--r--activerecord/lib/active_record/scoping/default.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/scoping/default.rb b/activerecord/lib/active_record/scoping/default.rb
index db833fc7f1..af51c803a7 100644
--- a/activerecord/lib/active_record/scoping/default.rb
+++ b/activerecord/lib/active_record/scoping/default.rb
@@ -8,7 +8,7 @@ module ActiveRecord
included do
# Stores the default scope for the class
- config_attribute :default_scopes
+ class_attribute :default_scopes, instance_writer: false
self.default_scopes = []
end