aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/layouts.rb
Commit message (Collapse)AuthorAgeFilesLines
* Avoid leak into controller's action_methodsprintercu2013-04-181-0/+1
|
* Provides standard layout lookup behavior for method and proc casesChris Nicola2013-03-271-5/+9
| | | | | | | When setting the layout either by referencing a method or supplying a Proc there is no way to fall back to the default lookup behavior if desired. This patch allows fallback to the layout lookup behavior when returning nil from the proc or method.
* delegate to :class rather than 'self.class'Gosha Arinich2013-01-061-1/+1
|
* Make conditional_layout? private and update documentationAndrew White2012-12-171-15/+23
| | | | | | | | | | | | | | | The conditional_layout? method is not for public use and doesn't actually do what the documentation suggested it does. It's actually used to determine whether or not to use the explicit layout definition defined in a controller or use the implicit layout definition. Also documentation was added for the action_has_layout? method which acts as a master switch for disabling the layout for the current action. This method was added so that action caching didn't depend on accessing layout internals but is also used by third-parties, most notably the [Hobo][1] application. [1]: https://github.com/hobo/hobo
* Hash Syntax to 1.9 converisonAvnerCohen2012-11-071-3/+3
|
* Add instance_accessor option to class_attributeAlexey Vakhov2012-05-221-2/+1
|
* Add a test case for layout nil.José Valim2012-03-281-0/+1
|
* Merge pull request #5365 from avakhov/ac-layouts-excpetion-msgsPiotr Sarnacki2012-03-161-2/+2
|\ | | | | Fix exceptions messages in AC layouts
| * Fix exceptions messages in AC layoutsAlexey Vakhov2012-03-101-2/+2
| |
* | allow zero-arity proc for AbstrController::layoutLuke Gruber2012-03-151-4/+11
| | | | | | | | | | proc without parameters can now be given to AbstractController::layout
* | Merge pull request #5421 from parndt/masterVijay Dev2012-03-141-0/+1
|\ \ | | | | | | Added missing 'end' to documentation example
| * | Added missing end to examplePhilip Arndt2012-03-141-0/+1
| |/
* | Fix layout method doc formattingAlexey Vakhov2012-03-101-2/+1
| |
* | Fix comment about layout folders lookupAlexey Vakhov2012-03-091-2/+2
|/
* Fix layout lookup for anonymous controllerAlexey Vakhov2012-02-281-0/+4
|
* Refactored two methods to use delete with a blockRuben Fonseca2012-02-211-1/+1
|
* Remove deprecated layout lookup.José Valim2011-12-201-48/+24
|
* Deprecate implicit layout lookup in favor of inheriting the _layout config.José Valim2011-12-091-32/+86
|
* Just use the proc if there is a chance of layout lookup.José Valim2011-12-081-5/+6
|
* Optimize layout lookup to avoid double calls.José Valim2011-12-081-24/+26
|
* Allow layout fallback when using `layout` methodPrem Sichanugrist2011-12-061-25/+34
| | | | | | | | | | | | Rails will now use your default layout (such as "layouts/application") when you specify a layout with `:only` and `:except` condition, and those conditions fail. For example, consider this snippet: class CarsController layout 'single_car', :only => :show end Rails will use 'layouts/single_car' when a request comes in `:show` action, and use 'layouts/application' (or 'layouts/cars', if exists) when a request comes in for any other actions.
* Fixed stale doc in AbstractController::LayoutsDalibor Nasevic2011-11-061-12/+5
|
* Don't do remove_possible_method when delegate is used. Two reasons: 1) ↵Jon Leighton2011-07-181-1/+2
| | | | warnings should be shown, and fixed at the source and 2) the code is slow. Fixes #1937.
* use present tense on examplesMatt Jankowski2011-06-211-5/+5
|
* remove extra space and clarify how an exception is made for controller wide ↵Matt Jankowski2011-06-211-3/+3
| | | | layouts
* reorder layout selection examples to occur in the order that the code does, ↵Matt Jankowski2011-06-211-5/+6
| | | | and provide more detail on why each selection is made
* More updates to ivars list.José Valim2011-05-061-3/+3
|
* Fixed a comment typoEric Hayes2011-04-141-1/+1
|
* #948 template_inheritanceartemave2010-12-261-2/+2
|
* Rewording existing commentNeeraj Singh2010-11-291-6/+3
|
* no need to call e.classAaron Patterson2010-09-291-1/+1
|
* Fix a small typo (ht: masterkain)José Valim2010-09-291-1/+1
|
* Avoid (@_var ||= nil) pattern by using initialize methods and ensuring ↵José Valim2010-09-291-3/+1
| | | | everyone calls super as expected.
* Define @_layout if it is not defined.Emilio Tagua2010-09-281-0/+1
|
* change rdoc to conform to api guidelinesJoost Baaij2010-08-251-10/+12
|
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* We seem to have removed the URL helpers from ActionView subclasses...wycats2010-03-181-0/+1
|
* Make render :partial, :layout consistent between AC and AVCarlhuda2010-03-181-6/+0
|
* Remove caching's dependency on view_context. Also, make it so that the ↵Carlhuda2010-03-181-4/+12
| | | | layout is always rendered the same way (so that layout dependencies on the action actually being rendered aren't masked on the first render)
* Make action_has_layout? non-privateCarlhuda2010-03-181-4/+4
|
* Eliminate warnings for AM on 1.8wycats2010-03-161-0/+4
|
* Finish cleaning up rendering stack from views and move assigns evaluation to ↵José Valim2010-03-121-0/+6
| | | | controller (so plugins and/or controllers can overwrite just one method).
* More refactoring on the views side of rendering.José Valim2010-03-081-7/+2
|
* Finally moved the find template logic to the views.José Valim2010-03-081-3/+4
|
* More refactoring. Split _normalize_args and _normalize_options concerns.José Valim2010-03-081-2/+6
|
* More cleanup on the layouts side.José Valim2010-03-081-53/+28
|
* Move layout lookup to views.José Valim2010-03-081-19/+6
|
* Added template lookup responsible to hold all information used in template ↵José Valim2010-03-071-29/+8
| | | | lookup.
* Fix controller_path returnsing an empty string in Ruby 1.8.7 [#4036 ↵José Valim2010-02-261-3/+0
| | | | status:resolved]
* Convert to class_attributeJeremy Kemper2010-02-011-2/+6
|