aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/implicit_render.rb
Commit message (Collapse)AuthorAgeFilesLines
* Override default_render's behavior with a blockDave Copeland2015-06-201-2/+17
| | | | | | | | | | 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`.
* Return 204 if render is not called in API controllersJorge Bejar2015-06-111-6/+3
|
* Fix ActionPack tests after changes to missing template loggereileencodes2015-04-061-1/+1
| | | | | | | | | After merging #19377 ActionPack tests were missing a require for `ActiveSupport::LogSubscriber::TestHelper` and change didn't take into account that logger could be nil. Added the require and only log to info if logger exists. This wasn't caught earlier because these tests only run after a merge.
* head no_content when there is no template or action performedStephen Bussey2015-04-051-1/+6
|
* Use performed? instead of checking for response_bodyCarlos Antonio da Silva2012-01-191-1/+1
| | | | | | * Check for performed? instead of response_body * Change performed? to return a boolean * Refactor AC::Metal#response_body= to reuse variable
* Revert to old semantics, use available_action? instead of action_method?.José Valim2011-05-061-9/+7
|
* pass respond_with options to controller render when using a template for api ↵Josh Kalderimis2011-03-311-2/+2
| | | | | | navigation Signed-off-by: José Valim <jose.valim@gmail.com>
* Make action_method? public and change implicit rendering to override it instead.José Valim2011-03-301-4/+2
|
* Pass the proper method_name instead of hardcoding to action_name.José Valim2011-03-291-8/+10
| | | | | | Conflicts: actionpack/lib/action_controller/metal/implicit_render.rb
* #948 template_inheritanceartemave2010-12-261-2/+2
|
* Finally moved the find template logic to the views.José Valim2010-03-081-1/+1
|
* Move layout lookup to views.José Valim2010-03-081-2/+1
|
* Added template lookup responsible to hold all information used in template ↵José Valim2010-03-071-0/+1
| | | | lookup.
* Actually move ImplicitRender into it's own fileCarl Lerche2010-03-031-0/+21