1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
Dave Copeland 6fda6c3778 Override default_render's behavior with a block
In 0de4a23 the behavior when there is a missing template was changed to
not raise an error, but instead head :no_content.  This is a breaking
change and some gems rely on this happening.

To allow gems and other code to work around this, allow
`default_render` to take a block which, if provided, will
execute the contents of that block instead of doing the `head :no_content`.
2015-06-20 12:00:07 -04:00
..
abstract_controller Raise ArgumentError if an unrecognised callback is skipped 2015-04-03 09:37:19 +01:00
action_controller Override default_render's behavior with a block 2015-06-20 12:00:07 -04:00
action_dispatch Revert "Merge pull request #20584 from arthurnn/fix_url" 2015-06-17 20:17:44 +02:00
action_pack Start Rails 5 development 🎉 2014-11-28 15:00:06 -02:00
abstract_controller.rb No need for .rb extension 2013-08-25 11:39:09 +02:00
action_controller.rb Return 204 if render is not called in API controllers 2015-06-11 16:54:17 -03:00
action_dispatch.rb Remove Unneeded ApiPublicExceptions middleware, PublicExceptions already does the work 2015-06-11 16:54:13 -03:00
action_pack.rb Update copyright notices to 2015 [ci skip] 2014-12-31 08:34:14 +01:00