From e030f26ad3de98205edec9d8b59ecca9508cb57d Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 25 May 2012 15:58:16 +0100 Subject: Simplify AR configuration code. Get rid of ActiveModel::Configuration, make better use of ActiveSupport::Concern + class_attribute, etc. --- activerecord/lib/active_record/scoping/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/scoping/default.rb') 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 -- cgit v1.2.3