diff options
Diffstat (limited to 'railties/environments/shared.rb')
-rw-r--r-- | railties/environments/shared.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/railties/environments/shared.rb b/railties/environments/shared.rb index 9b261ba59e..3638f6f1fc 100644 --- a/railties/environments/shared.rb +++ b/railties/environments/shared.rb @@ -14,6 +14,7 @@ ADDITIONAL_LOAD_PATHS.concat %w( app/models app/controllers app/helpers + app/apis config lib vendor @@ -23,6 +24,7 @@ ADDITIONAL_LOAD_PATHS.concat %w( vendor/activerecord/lib vendor/actionpack/lib vendor/actionmailer/lib + vendor/actionservice/lib ).map { |dir| "#{RAILS_ROOT}/#{dir}" } # Prepend to $LOAD_PATH @@ -34,6 +36,7 @@ require 'active_support' require 'active_record' require 'action_controller' require 'action_mailer' +require 'action_service' # Environment-specific configuration. @@ -54,12 +57,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: |