aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/shared_for_gem.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/environments/shared_for_gem.rb')
-rw-r--r--railties/environments/shared_for_gem.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/railties/environments/shared_for_gem.rb b/railties/environments/shared_for_gem.rb
index 6ee762de6a..dd2c7c2d29 100644
--- a/railties/environments/shared_for_gem.rb
+++ b/railties/environments/shared_for_gem.rb
@@ -14,6 +14,7 @@ ADDITIONAL_LOAD_PATHS.concat %w(
app/models
app/controllers
app/helpers
+ app/apis
config
lib
vendor
@@ -29,6 +30,7 @@ require_gem 'activesupport'
require_gem 'activerecord'
require_gem 'actionpack'
require_gem 'actionmailer'
+require_gem 'actionservice'
require_gem 'rails'
@@ -50,12 +52,8 @@ rescue StandardError
)
end
-[ActiveRecord::Base, ActionController::Base, ActionMailer::Base].each do |klass|
- klass.logger ||= RAILS_DEFAULT_LOGGER
-end
-[ActionController::Base, ActionMailer::Base].each do |klass|
- klass.template_root ||= "#{RAILS_ROOT}/app/views/"
-end
+[ActiveRecord, ActionController, ActionMailer].each { |mod| mod::Base.logger ||= RAILS_DEFAULT_LOGGER }
+[ActionController, ActionMailer].each { |mod| mod::Base.template_root ||= "#{RAILS_ROOT}/app/views/" }
ActionController::Routing::Routes.reload
# Include your app's configuration here: