Skip to content

Commit

Permalink
Simplify determination of unsupported Rails version
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-antonopoulos committed Nov 1, 2024
1 parent eef59b4 commit 62105ed
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lib/install/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,8 @@ def node_version_unsupported?
node_version < "20.0.0"
end

def rails_version
version = `rails --version`[/\d+\.\d+\.\d+/]

return if version.blank?

Gem::Version.new(version)
end

def rails_version_unsupported?
minimum_rails_version = Gem::Version.new("7.2.0")

rails_version < minimum_rails_version
Rails.gem_version < Gem::Version.new("7.3.0")
end

def apply_template!
Expand Down

0 comments on commit 62105ed

Please sign in to comment.