X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7d92ec704786c2d887e1946f25746d6d70ee7ea8..f3f1687fa300971c793d59e0ae52c81d1076a02a:/config/initializers/r2.rb?ds=sidebyside diff --git a/config/initializers/r2.rb b/config/initializers/r2.rb index 70676ca7e..545d7bc02 100644 --- a/config/initializers/r2.rb +++ b/config/initializers/r2.rb @@ -1,5 +1,5 @@ class R2Template < Tilt::Template - self.default_mime_type = 'text/css' + self.default_mime_type = "text/css" def self.engine_initialized? defined? ::R2 @@ -12,10 +12,12 @@ class R2Template < Tilt::Template def prepare @output = R2.r2(data) end - - def evaluate(scope, locals, &block) + + def evaluate(_scope, _locals, &_block) @output end end -Rails.application.assets.register_engine ".r2", R2Template +Rails.application.config.assets.configure do |env| + env.register_engine ".r2", R2Template +end