1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

Tests: use load_defaults in dummy_app

Suggested in
https://github.com/paper-trail-gem/paper_trail/pull/1273#issuecomment-744357944
This commit is contained in:
Jared Beck 2020-12-14 15:49:48 -05:00
parent f66c702c58
commit b2cb837c81
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
module Family
class CelebrityFamily < Family::Family
class CelebrityFamily < ::Family::Family
end
end

View file

@ -11,6 +11,8 @@ require "paper_trail"
module Dummy
class Application < Rails::Application
config.load_defaults(::Rails.gem_version.segments.take(2).join("."))
config.encoding = "utf-8"
config.filter_parameters += [:password]
config.active_support.escape_html_entities_in_json = true
@ -38,7 +40,6 @@ module Dummy
config.active_record.time_zone_aware_types = [:datetime]
end
if v >= Gem::Version.new("5.1")
config.load_defaults "5.1"
config.active_record.time_zone_aware_types = [:datetime]
end
end