spec/tang_app/config/application.rb in tang-0.0.1 vs spec/tang_app/config/application.rb in tang-0.0.8

- old
+ new

@@ -8,12 +8,12 @@ require "sprockets/railtie" # require "rails/test_unit/railtie" Bundler.require(*Rails.groups) -require 'dotenv-rails' -Dotenv::Railtie.load +require 'dotenv' +Dotenv.load(File.expand_path('../../../../.env', __FILE__)) require "tang" module TangApp class Application < Rails::Application @@ -28,9 +28,11 @@ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # 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 + # config.active_record.raise_in_transactional_callbacks = true + + config.action_mailer.preview_path = File.expand_path('../../../../spec/mailers/previews', __FILE__) end end