X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..d1d4f8192da5a266cddb17bb8970b2b04387888c:/config/initializers/r2.rb 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