aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/mime_responds.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-04-121-2/+2
|\
| * removed :nodoc: from ActionController::MimeRespondsJo Liss2011-04-101-2/+2
| | | | | | | | | | So we don't miss out on the nice documentation of the respond_to and respond_with instance methods. Also added :nodoc: to protected method.
* | Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-2/+3
|/ | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-04-031-0/+3
|\
| * Explain in the method doc that you need to call respond_to at the class ↵Amaia Castro2011-03-311-0/+3
| | | | | | | | level in order to use respond_with.
* | 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>
* Fix respond_with example code so it makes senseWill2010-12-191-2/+2
|
* Correct deprecated AR usage in ActionController::MimeResponds documentationWill2010-12-191-4/+4
|
* implicit self hereSantiago Pastorino2010-11-251-1/+1
|
* move the setting up of the mime collector into the collector on initJosh Kalderimis2010-11-251-3/+3
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* There's no need for ternary op hereSantiago Pastorino2010-11-221-1/+1
|
* Correctly handle the case of an API response that returns a hash by treating ↵Chris Eppstein2010-11-061-1/+1
| | | | a single hash argument as the resource instead of as options.
* doc: cleanup respond_to documentationWincent Colaiuta2010-07-261-9/+12
| | | | Signed-off-by: Wincent Colaiuta <win@wincent.com>
* Fixed many references to the old config/environment.rb and Rails::InitializerBenjamin Quorning2010-07-131-1/+1
|
* Ensure details are frozen after @details_keys lookup. The implementation ↵José Valim2010-03-271-2/+1
| | | | waits to freeze until the last required moment, to avoid duping hashes.
* Improve performance of the rendering stack by freezing formats as a sign ↵José Valim2010-03-191-0/+1
| | | | that they shouldn't be further modified.
* Finish cleaning up rendering stack from views and move assigns evaluation to ↵José Valim2010-03-121-0/+1
| | | | controller (so plugins and/or controllers can overwrite just one method).
* Convert to class_attributeJeremy Kemper2010-02-011-9/+12
|
* Added AbstractController::Collector.José Valim and Mikel Lindsaar2010-01-231-26/+3
|
* Raise an error if respond_with is invoked and no format is declared.José Valim2010-01-101-3/+6
|
* Unify class_inheritable_accessor and extlib_inheritable_accessor and allow ↵José Valim2009-10-171-6/+3
| | | | responder to be set in the class level.
* Ensure that blocks are also handled inside the responder.José Valim2009-08-291-18/+16
|
* Attempt to render the template inside the responder, so it can be used for ↵José Valim2009-08-291-21/+28
| | | | | | caching and pagination. Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Ensure collections are not treated as nested resources.José Valim2009-08-131-2/+3
|
* Renamed ActionController::Renderer to ActionController::Responder and ↵José Valim2009-08-081-13/+13
| | | | ActionController::MimeResponds::Responder to ActionController::MimeResponds::Collector.
* Renamed presenter to renderer, added some documentation and defined its API.José Valim2009-08-071-152/+10
|
* Encapsulate respond_with behavior in a presenter.José Valim2009-08-071-190/+165
|
* Add destroyed? to ActiveRecord, include tests for polymorphic urls for ↵José Valim2009-08-071-0/+31
| | | | destroyed objects and refactor mime responds tests and documentation.
* Add nagivational behavior to respond_with.José Valim2009-08-071-47/+110
|
* Merge branch 'master' of git://github.com/rails/rails into oldJosé Valim2009-08-071-47/+81
|
* Rename /base to /metal and make base.rb and metal.rb top-level to reflect ↵Yehuda Katz2009-08-061-0/+353
their module locations