X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..f3f1687fa300971c793d59e0ae52c81d1076a02a:/config/initializers/r2.rb?ds=inline diff --git a/config/initializers/r2.rb b/config/initializers/r2.rb index bad88e1ba..545d7bc02 100644 --- a/config/initializers/r2.rb +++ b/config/initializers/r2.rb @@ -18,4 +18,6 @@ class R2Template < Tilt::Template end end -Rails.application.assets.register_engine ".r2", R2Template +Rails.application.config.assets.configure do |env| + env.register_engine ".r2", R2Template +end