Sha256: c54eb3a84677c50d5ae708c1c7470b3fa49c3fd8742a102e0d281631528d2295
Contents?: true
Size: 309 Bytes
Versions: 2
Compression:
Stored size: 309 Bytes
Contents
module MulberryPreview class Engine < ::Rails::Engine 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::Type.register mime, ext end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mulberry_preview-0.0.10 | lib/mulberry_preview/engine.rb |
mulberry_preview-0.0.9 | lib/mulberry_preview/engine.rb |