Skip to content

Commit

Permalink
Remove conditionals for rails version equal to or greater than 5
Browse files Browse the repository at this point in the history
  • Loading branch information
vsppedro committed Mar 10, 2021
1 parent 59fee8a commit 7ecab33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions spec/support/acceptance/helpers/rails_migration_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ module RailsMigrationHelpers
include RailsVersionHelpers

def migration_class_name
if rails_version >= 5
"ActiveRecord::Migration[#{rails_version_for_migration}]"
else
'ActiveRecord::Migration'
end
"ActiveRecord::Migration[#{rails_version_for_migration}]"
end

private
Expand Down
4 changes: 1 addition & 3 deletions spec/support/unit/rails_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ def generate
write_activerecord_model_with_default_connection
write_activerecord_model_with_different_connection

if rails_version >= 5
add_initializer_for_time_zone_aware_types
end
add_initializer_for_time_zone_aware_types
end

def rails_new
Expand Down

0 comments on commit 7ecab33

Please sign in to comment.