]> git.openstreetmap.org Git - rails.git/commitdiff
Restore ruby 2.5 compatibility
authorTom Hughes <tom@compton.nu>
Mon, 11 Jan 2021 20:04:13 +0000 (20:04 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 11 Jan 2021 20:04:13 +0000 (20:04 +0000)
.rubocop.yml
config/initializers/oauth.rb

index 200ab8a00816b92077b78ea72c7908636d9a989e..9b7a28d87e0ad61061f9411371c9f1c3df848902 100644 (file)
@@ -6,7 +6,7 @@ require:
   - rubocop-rails
 
 AllCops:
-  TargetRubyVersion: 2.7
+  TargetRubyVersion: 2.5
   NewCops: enable
   Exclude:
     - 'vendor/**/*'
index c897785518cd484a0d7b742e5cc47545356d2910..2e2f45ab88e1c46667b09719f07ca7880d238936 100644 (file)
@@ -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