1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

To avoid validation errors in the tests

This commit is contained in:
Akira Matsuda 2021-12-20 03:19:26 +09:00
parent 6786e20733
commit b47a7f8b85

View file

@ -14,6 +14,7 @@ class KaminariTestApp < Rails::Application
config.eager_load = false
# Rails.root
config.root = File.dirname(__FILE__)
config.active_record.belongs_to_required_by_default = false if (Rails::VERSION::MAJOR >= 5) && defined?(ActiveRecord)
end
Rails.backtrace_cleaner.remove_silencers!
Rails.application.initialize!