mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #3618 from hennevogel/bugfix/rails-version
Put RailsVersion into autoloaded path
This commit is contained in:
commit
8e173ef713
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.
|
||||
# Matching on major and minor versions should be enough for most migrations.
|
||||
module RailsVersion
|
||||
def self.is_6?
|
||||
Rails::VERSION::MAJOR == 6
|
||||
def self.next?
|
||||
Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR == 2
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue