mongoid - Is Rails 3 removing Metal? -
is rails 3 removing metal?
i trying implement mongoid, carrierwave , grid_fs.
i have followed guide 1.
however, have read rails 3 removing metal ( http://github.com/rails/rails/commit/ed34652d1aca148fea61c5309c1bd5ff3a55abfa ).
so stumbled across article instead: guide 2
given circumstances rails 3 may removing metal , future maintenance. guide more suitable grid_fs, mongoid , carrierwave working together?
you noticed commit comment "removing metal rails 3." however, going on quite opposite of phrase!
rails 3 did not remove metal. quite opposite. now, all controllers metals, additional features request. need inherit particular controller class actioncontroller::metal, , include particular modules provide additional features want in particular controller.
of course, people inherit controllers actioncontroller::base. now, actioncontroller::base merely inherits actioncontroller::metal , includes of additional feature modules.
that commit noticed removing metals separate feature, apart rest of actionpack. now, metals no longer separate feature, separate feature implementation of metals removed. now, everything metal.
Comments
Post a Comment