Put RailsVersion into autoloaded path
Also configure it for the next rails version
This commit is contained in:
parent
4ec9aee5da
commit
04beb397ee
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
# Methods of this module must match whatever Rails version is defined in Gemfile.next.lock.
|
# Methods of this module must match whatever Rails version is defined in Gemfile.next.lock.
|
||||||
# Matching on major and minor versions should be enough for most migrations.
|
# Matching on major and minor versions should be enough for most migrations.
|
||||||
module RailsVersion
|
module RailsVersion
|
||||||
def self.is_6?
|
def self.next?
|
||||||
Rails::VERSION::MAJOR == 6
|
Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR == 2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue