require File.expand_path('../preinitializer', __FILE__)
if STATUS == :database_offline
-require "action_controller/railtie"
-require "action_mailer/railtie"
-require "active_model/railtie"
-require "sprockets/railtie"
-require "rails/test_unit/railtie"
+ require "action_controller/railtie"
+ require "action_mailer/railtie"
+ require "active_model/railtie"
+ require "sprockets/railtie"
+ require "rails/test_unit/railtie"
else
-require 'rails/all'
+ require 'rails/all'
end
# Require the gems listed in Gemfile, including any gems
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
+ # Do not swallow errors in after_commit/after_rollback callbacks.
+ config.active_record.raise_in_transactional_callbacks = true
+
# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/lib)