lib/mulberry_preview/engine.rb in mulberry_preview-0.0.8 vs lib/mulberry_preview/engine.rb in mulberry_preview-0.0.9
- old
+ new
@@ -1,10 +1,10 @@
module MulberryPreview
class Engine < ::Rails::Engine
- initializer "mimes" do |app|
+ initializer 'mimes' do |_app|
MIMES = YAML.load_file("#{self.class.root}/config/mimes.yml")
MIMES.each do|ext, mime|
- Mime.fetch(ext) do|fallback|
+ Mime.fetch(ext) do|_fallback|
Mime::Type.register mime, ext
end
end
end
end