]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/eslint.rb
Use resourceful routes for api trace show, update, destroy
[rails.git] / config / initializers / eslint.rb
index 9d805eafb518c8d10eed8e4d60ed3aaee9278bc1..9ddf4916e6193d140f34c547ca84c5788d7f7ff3 100644 (file)
@@ -3,7 +3,7 @@ if defined?(ESLintRails::Runner)
     module ESLintRails
       module ExcludeI18n
         def assets
     module ESLintRails
       module ExcludeI18n
         def assets
-          super.reject { |a| a.to_s =~ %r{/i18n/} }
+          super.reject { |a| a.to_s.include?("/i18n/") }
         end
       end
     end
         end
       end
     end