lib/generators/lockbox/audits_generator.rb in lockbox-1.4.1 vs lib/generators/lockbox/audits_generator.rb in lockbox-2.0.0

- old
+ new

@@ -27,14 +27,10 @@ end # use connection_config instead of connection.adapter # so database connection isn't needed def adapter - if ActiveRecord::VERSION::STRING.to_f >= 6.1 - ActiveRecord::Base.connection_db_config.adapter.to_s - else - ActiveRecord::Base.connection_config[:adapter].to_s - end + ActiveRecord::Base.connection_db_config.adapter.to_s end end end end