Skip to content

Commit

Permalink
fix rails version logic in application.rb
Browse files Browse the repository at this point in the history
Rails.version returns the whole version string, we just need to see that
we're on 7.0
  • Loading branch information
argvniyx-enroute committed Apr 17, 2024
1 parent 6672557 commit ca9640a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ module Dummy
class Application < Rails::Application
config.autoloader = Rails::VERSION::MAJOR >= 7 ? :zeitwerk : :classic
config.active_record.sqlite3.represent_boolean_as_integer = true if Rails::VERSION::MAJOR < 6
config.active_record.legacy_connection_handling = false if Gem::Version.new(Rails.version) == Gem::Version.new('7.0')
config.active_record.legacy_connection_handling = false if Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR == 0
end
end

0 comments on commit ca9640a

Please sign in to comment.