diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-26 09:18:41 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-26 09:19:57 -0200 |
commit | 3da164982817828aa5f7d9e2158c04ce40ee5f55 (patch) | |
tree | c5bc9dc1af4340f04eab0d6a45d87d6bf63cf723 /activemodel/test | |
parent | 02c30c64262fd9e1625bc7f3723729c4e62e610b (diff) | |
download | rails-3da164982817828aa5f7d9e2158c04ce40ee5f55.tar.gz rails-3da164982817828aa5f7d9e2158c04ce40ee5f55.tar.bz2 rails-3da164982817828aa5f7d9e2158c04ce40ee5f55.zip |
Require active_model/railtie directly instead of rails/all
Use Class.new with a block instead of tap to configure it.
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/railtie_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/test/cases/railtie_test.rb b/activemodel/test/cases/railtie_test.rb index f89a288f8f..d44a3448df 100644 --- a/activemodel/test/cases/railtie_test.rb +++ b/activemodel/test/cases/railtie_test.rb @@ -5,10 +5,10 @@ class RailtieTest < ActiveModel::TestCase include ActiveSupport::Testing::Isolation def setup - require 'rails/all' + require 'active_model/railtie' - @app ||= Class.new(::Rails::Application).tap do |app| - app.config.eager_load = false + @app ||= Class.new(::Rails::Application) do + config.eager_load = false end end |