]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/r2.rb
Add thunderforest API key to example configuration
[rails.git] / config / initializers / r2.rb
index 114041202aa325e024253d51630faeff7e876a75..545d7bc0274db58afb8488d731ad9ed45f8c6315 100644 (file)
@@ -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
@@ -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