Sha256: 3300421de89de439ec84011bd7ed525a9b5333efb597a850fb786004dc0048b6
Contents?: true
Size: 1.37 KB
Versions: 5
Compression:
Stored size: 1.37 KB
Contents
require File.expand_path('../boot', __FILE__) # Pick the frameworks you want: require 'active_record/railtie' require 'action_controller/railtie' Bundler.require(:default, Rails.env) require 'paper_trail' module Dummy class Application < Rails::Application config.encoding = 'utf-8' config.filter_parameters += [:password] config.active_support.escape_html_entities_in_json = true config.active_support.test_order = :sorted # Disable assets in rails 4.2. In rails 5, config does not respond to # assets, probably because it was moved out of railties to some other gem, # and we only have dev. dependencies on railties, not all of rails. When # we drop support for rails 4.2, we can remove this whole conditional. config.assets.enabled = false if config.respond_to?(:assets) config.secret_key_base = 'A dog regularly kicked the screaming pile of biscuits.' # `raise_in_transactional_callbacks` was added in rails 4, then deprecated # in rails 5. Oh, how fickle are the gods. if ActiveRecord.respond_to?(:gem_version) v = ActiveRecord.gem_version if v >= Gem::Version.new('4.2') && v < Gem::Version.new('5.0.0.beta1') config.active_record.raise_in_transactional_callbacks = true end if v >= Gem::Version.new('5.0.0.beta1') config.active_record.time_zone_aware_types = [:datetime] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems