samvincent/rqrcode-rails3 — Issue #11: PNG Mime type already registered with Rails 3.2
Author: peternash
Created: 2012-01-27 10:51:17+00:00
State: open

In Rails 3.2 the PNG Mime Type is already registered so you see this error each time Rails starts:

/actionpack-3.2.1/lib/action_dispatch/http/mime_type.rb:101: warning: already initialized constant PNG

Changing line 8 of rqrcode-rails3.rb as follows prevents the error:

Mime::Type.register "image/png", :png unless Mime::Type.lookup_by_extension(:png)