rails/actionpack/lib/action_controller
Jeremy Daer 565094a8b5 Use Mime[:foo] instead of Mime::Type[:FOO] for back compat
Rails 4.x and earlier didn't support `Mime::Type[:FOO]`, so libraries
that support multiple Rails versions would've had to feature-detect
whether to use `Mime::Type[:FOO]` or `Mime::FOO`.

`Mime[:foo]` has been around for ages to look up registered MIME types
by symbol / extension, though, so libraries and plugins can safely
switch to that without breaking backward- or forward-compatibility.

Note: `Mime::ALL` isn't a real MIME type and isn't registered for lookup
by type or extension, so it's not available as `Mime[:all]`. We use it
internally as a wildcard for `respond_to` negotiation. If you use this
internal constant, continue to reference it with `Mime::ALL`.

Ref. efc6dd550ee49e7e443f9d72785caa0f240def53
2015-10-06 11:29:30 -07:00
..
caching Merge pull request #14137 from dasch/better-fragment-cache-instrumentation 2014-05-14 20:04:43 -03:00
metal Use Mime[:foo] instead of Mime::Type[:FOO] for back compat 2015-10-06 11:29:30 -07:00
railties Simplify helpers handling. Ensure Metal can run AC hooks. 2012-03-15 08:48:38 +01:00
api.rb remove RackDelegation module 2015-08-26 11:53:15 -07:00
base.rb eagerly allocate the renderer object 2015-09-14 15:29:19 -07:00
caching.rb remove RackDelegation module 2015-08-26 11:53:15 -07:00
form_builder.rb remove extra = in form builder example [ci skip] 2015-04-15 23:06:01 +09:00
log_subscriber.rb Freeze string literals when not mutated. 2015-07-19 17:45:10 -05:00
metal.rb move file sending to the response object 2015-10-05 16:50:50 -07:00
railtie.rb Merge pull request #15933 from rafael/master 2014-06-27 18:16:52 -03:00
renderer.rb allocate request objects with the env hash, set routes on the request 2015-09-15 07:38:39 -07:00
template_assertions.rb Remove assigns and assert_template. 2015-05-30 14:13:57 +08:00
test_case.rb Use Mime[:foo] instead of Mime::Type[:FOO] for back compat 2015-10-06 11:29:30 -07:00