Restore ruby 2.5 compatibility
This commit is contained in:
parent
0654be27f9
commit
b7d6243aff
2 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ require:
|
|||
- rubocop-rails
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.7
|
||||
TargetRubyVersion: 2.5
|
||||
NewCops: enable
|
||||
Exclude:
|
||||
- 'vendor/**/*'
|
||||
|
|
|
@ -35,12 +35,12 @@ module OpenStreetMap
|
|||
module ClassMethods
|
||||
def included(controller)
|
||||
controller.class_eval do
|
||||
def self.before_filter(...)
|
||||
before_action(...)
|
||||
def self.before_filter(*names, &blk)
|
||||
before_action(*names, &blk)
|
||||
end
|
||||
|
||||
def self.skip_before_filter(...)
|
||||
skip_before_action(...)
|
||||
def self.skip_before_filter(*names, &blk)
|
||||
skip_before_action(*names, &blk)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue