aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
Commit message (Collapse)AuthorAgeFilesLines
...
* oops, missed a uniqAaron Patterson2010-09-291-1/+1
|
* dry up action_methodsAaron Patterson2010-09-291-4/+4
|
* 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-293-5/+2
| | | | everyone calls super as expected.
* Define @_layout if it is not defined.Emilio Tagua2010-09-281-0/+1
|
* Avoid more uninitialized variable warnings.Emilio Tagua2010-09-281-1/+1
|
* Refactor ActionMailer to not use hide_actionsPiotr Sarnacki2010-09-031-0/+28
|
* Move ActionController::Railties::RoutesHelpers and ↵Piotr Sarnacki2010-09-031-0/+18
| | | | ActionMailer::Railties::RoutesHelper to AbstractController::Railties::RoutesHelpers
* Add mounted_helpers to routesPiotr Sarnacki2010-09-031-0/+1
| | | | | | | | | | | | | | | | mounted_helpers are a bit similar to url_helpers. They're automatically included in controllers for Rails.application and each of mounted Engines. Mounted helper allows to call url_for and named helpers for given application. Given Blog::Engine mounted as blog_engine, there are 2 helpers defined: app and blog_engine. You can call routes for app and engine using those helpers: app.root_url app.url_for(:controller => "foo") blog_engine.posts_path blog_engine.url_for(@post)
* Ensure that inherited helper_methods are available after calling ↵Jesse Storimer2010-08-281-1/+11
| | | | | | clear_helpers [#5348 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Add clear_helpers as a way to clean up all helpers added to this controller, ↵José Valim2010-08-261-0/+7
| | | | maintaing just the helper with the same name as the controller.
* fixed capitalizationJoost Baaij2010-08-251-8/+8
|
* change rdoc to conform to api guidelinesJoost Baaij2010-08-255-57/+60
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* Reload action_methods in AbstractController after defining new method.Piotr Sarnacki2010-08-041-0/+12
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Also move asset_path to AbstractController.José Valim2010-07-241-1/+1
|
* Move config_accessor :asset_host from ActionController::Base to ↵Jeroen van Dijk and Josh Kalderimis2010-07-241-1/+1
| | | | | | | | AbstractController which fixes issues with asset_host in ActionMailer Including: - Moved mailer objects in separate directory - Added two tests for asset_host configuration option
* Unify routes naming by renaming router to routesPiotr Sarnacki2010-07-021-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* ActiveRecord and ActionPack now use the new descendants implementation.José Valim2010-06-191-11/+2
|
* Missing method error doesn't specify which controller it is missing from ↵Alan Harper2010-06-101-1/+1
| | | | | | | | | [#4436 state:resolved] The error page shown when the method you are requesting on a controller doesn't specify which controller the method is missing from Signed-off-by: José Valim <jose.valim@gmail.com>
* class_attribute is not a direct replacement of class_inheritable_*.José Valim2010-06-101-1/+2
| | | | | | If you are setting a hash or an array in class_attribute or you need to freeze it, to ensure people won't modify it in place or you need to dup it on inheritance.
* Missed the extractionDavid Heinemeier Hansson2010-06-031-0/+9
|
* Changes made while working on upgrading cells to Rails 3wycats2010-06-032-0/+2
|
* Minor typo fix in callbacks.rb of abstract_controllerRohit Arondekar2010-06-031-1/+1
|
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-224-36/+5
| | | | delegates to the config object, reducing the number of deprecations and add specific tests.
* Revert "Avoid deprecation warnings and potential TypeErrors [#4404 ↵Carl Lerche2010-04-162-3/+3
| | | | | | | state:resolved]" Revert "protected instance variables added to the deprecated config accessor This reverts commit 4bce5ba600596b5e7afec9b097866ac259c5940a and 0ee2d3c89a893f0c53924cbb756c7e9be616eb8f.
* Avoid deprecation warnings and potential TypeErrors [#4404 state:resolved]Nicolas Sanguinetti2010-04-152-3/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix ActionMailer test broken in 99d54599215c2a8cea7e57f609e8e578043d71b2José Valim2010-04-121-2/+1
|
* render_to_string should have the identical signature as renderwycats2010-04-041-9/+8
|
* Well that was a bustwycats2010-03-181-1/+5
|
* We seem to have removed the URL helpers from ActionView subclasses...wycats2010-03-182-0/+7
|
* Each controller class has it's own view context subclass. This removes the ↵Carlhuda2010-03-182-13/+25
| | | | need for ActionView::Base.for_controller
* Return a valid Rack response from bare ActionController::MetalCarlhuda2010-03-181-13/+1
|
* Make render :partial, :layout consistent between AC and AVCarlhuda2010-03-181-6/+0
|
* All tests pass without memoizing view_contextCarlhuda2010-03-181-3/+13
|
* 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
|
* Ensure json is loaded before using responders.José Valim2010-03-171-1/+0
|
* Remove unneeded AV::Base and AV::Template monkey-patchesCarlhuda2010-03-171-0/+1
|
* 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-123-8/+35
| | | | controller (so plugins and/or controllers can overwrite just one method).
* Allow anything that responds to render to be given as :template and use ↵José Valim2010-03-121-5/+1
| | | | find_template instead of find in views.
* Optimize and clean up how details key get expired.José Valim2010-03-102-1/+30
|
* Clean up the API required from ActionView::Template.José Valim2010-03-091-1/+1
|
* Clean LookupContext API.José Valim2010-03-082-3/+6
|
* Move details to lookup_context and make resolvers use the cache key.José Valim2010-03-081-10/+0
|
* Move ViewPaths module to its own file.José Valim2010-03-082-70/+70
|
* Speed up performance in resolvers by adding fallbacks just when required.José Valim2010-03-081-10/+4
|