spec/rails_app/config/application.rb in audited-4.7.1 vs spec/rails_app/config/application.rb in audited-4.8.0
- old
+ new
@@ -4,5 +4,10 @@
class Application < Rails::Application
config.root = File.expand_path('../../', __FILE__)
config.i18n.enforce_available_locales = true
end
end
+
+require 'active_record/connection_adapters/sqlite3_adapter'
+if ActiveRecord::ConnectionAdapters::SQLite3Adapter.respond_to?(:represent_boolean_as_integer)
+ ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer = true
+end