diff options
author | Eugene Gilburg <eugene.gilburg@gmail.com> | 2014-12-18 12:41:02 -0800 |
---|---|---|
committer | Eugene Gilburg <eugene.gilburg@gmail.com> | 2014-12-18 12:41:02 -0800 |
commit | 9f7ab82ad2d458b2bc5b3c5dba7cfc577a4b87eb (patch) | |
tree | 3dc52488c4a4df9d8e284b69207d2c5bbaa4799d /activesupport | |
parent | 85990220ab021129bfb5ce15586ea02d2acff92c (diff) | |
download | rails-9f7ab82ad2d458b2bc5b3c5dba7cfc577a4b87eb.tar.gz rails-9f7ab82ad2d458b2bc5b3c5dba7cfc577a4b87eb.tar.bz2 rails-9f7ab82ad2d458b2bc5b3c5dba7cfc577a4b87eb.zip |
simplify ActiveSupport.test_order definition
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb index 34040e9d33..f9a2e94a4e 100644 --- a/activesupport/lib/active_support.rb +++ b/activesupport/lib/active_support.rb @@ -71,15 +71,8 @@ module ActiveSupport NumberHelper.eager_load! end - @@test_order = nil - - def self.test_order=(new_order) # :nodoc: - @@test_order = new_order - end - - def self.test_order # :nodoc: - @@test_order - end + cattr_accessor :test_order # :nodoc: + self.test_order = nil end autoload :I18n, "active_support/i18n" |