Skip to content

Commit

Permalink
Corrected test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Tsoganov authored and Sergei Tsoganov committed Mar 16, 2023
1 parent ec203df commit edc4162
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,7 @@ class Application < Rails::Application
config.active_record.belongs_to_required_by_default = false

config.action_dispatch.trusted_proxies = %w(127.0.0.1/32).map { |proxy| IPAddr.new(proxy) }

config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time]
end
end
1 change: 1 addition & 0 deletions test/learning/paper_trail_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class PaperTrailLearningTest < ActiveSupport::TestCase
t.string :title

# Otherwise `touch` fails silently
t.datetime :created_at
t.datetime :updated_at
end
end
Expand Down

0 comments on commit edc4162

Please sign in to comment.