aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/helpers.rb
Commit message (Collapse)AuthorAgeFilesLines
* pass app config to controller helper proxyTima Maslyuchenko2013-10-241-1/+5
| | | | | | | | | | | | | | | After this fix application config become available when calling helper outisde of view config/application.rb #... config.asset_host = 'http://mycdn.com' #... Somewhere else ActionController::Base.helpers.asset_path('fallback.png') # => http://mycdn.com/assets/fallback.png
* Improve documentation for controller how to get included helpers [ci skip]Paul Nikitochkin2013-07-301-1/+1
| | | | Closes #11671
* Remove unecessary variable call, `#sort!` always returns an arrayAgis Anastasopoulos2013-04-071-1/+0
|
* Bring back helpers_path attr accessorCarlos Antonio da Silva2012-12-131-1/+1
| | | | | This is apparently used by the railtie to setup the app helpers paths correctly between initializers. I'll need to check it further.
* Refactor helpers code in Action Pack a bitCarlos Antonio da Silva2012-12-131-5/+4
| | | | | | | | * Avoid calling class_eval when not needed * Remove helpers_path attr accessor, it's defined as a class attribute a few lines later * Avoid creating extra arrays when finding helpers, use flat_map and sort! * Remove not required refer variable when redirecting :back
* load active_support/core_ext/class/attribute in active_support/railsXavier Noria2012-08-021-1/+0
|
* Fix sorting of helpers from different pathsPiotr Sarnacki2012-05-281-2/+2
| | | | | | | | | | | | | | | | When more than one directory for helpers is provided to a controller, it should preserver the order of directories. Given 2 paths: MyController.helpers_paths = ["dir1/helpers", "dir2/helpers"] helpers from dir1 should be loaded first. Before this commit, all helpers were mixed and then sorted alphabetically, which essentially would require to rename helpers to get desired order. This is a problem especially for engines, where you would like to be able to predict accurately which engine helpers will load first. (closes #6496)
* Removing ==Examples and last blank lines of docs from actionpackFrancesco Rodriguez2012-05-151-1/+0
|
* Simplify helpers handling. Ensure Metal can run AC hooks.José Valim2012-03-151-0/+1
|
* Use Kernel#Array in ActionController::HelpersRafael Mendonça França2012-01-051-2/+1
|
* Remove unecessary config_accessors.José Valim2011-12-241-1/+1
|
* fix helpers behavior descriptionAlexey Vakhov2011-09-031-3/+6
|
* find(:all) => allAkira Matsuda2011-07-081-1/+1
|
* Make ActionController::Base.modules_for_helpers and ↵Piotr Sarnacki2011-04-251-26/+26
| | | | ActionController::Base.all_helpers_from_path public methods
* Add config.action_controller.include_all_helpers, by default it is set to true.Piotr Sarnacki2010-11-181-1/+2
| | | | | | | In older rails versions there was a way to use only helpers from helper file corresponding to current controller and you could also include all helpers by saying 'helper :all' in controller. This config allows to return to older behavior by setting it to false.
* Remove more warnings shadowing outer local variable.Emilio Tagua2010-09-271-3/+3
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove more warnings shadowing outer local variable.Emilio Tagua2010-09-271-3/+3
|
* Cleanup deprecation warnings in Action ControllerCarlos Antonio da Silva2010-09-061-11/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Include application's helpers and router helpers by default, but include ↵Piotr Sarnacki2010-09-031-1/+5
| | | | engine's ones for controllers inside isolated namespace
* cleanup of ActionController::Metal inline documentationJoost Baaij2010-08-261-13/+11
|
* Fix setting helpers_path to a string or pathnameJeremy Kemper2010-07-071-2/+3
|
* Use caller for helpers_dir deprecation warningsJeremy Kemper2010-06-281-2/+2
|
* Ruby 1.9: helper path may be a pathname, so convert to a string before ↵Jeremy Kemper2010-05-161-1/+1
| | | | quoting for regexp
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-221-2/+2
| | | | delegates to the config object, reducing the number of deprecations and add specific tests.
* revises some <%= in rdocXavier Noria2010-04-051-1/+1
|
* Update AP to start locking down a public API. This work is parallel to some ↵Yehuda Katz2010-02-161-2/+2
| | | | docs I'm working on.
* Convert to class_attributeJeremy Kemper2010-02-011-1/+3
|
* Bring helpers_dir deprecation back.José Valim2010-01-301-0/+2
|
* Fix some backward incompatible behavior on AM.José Valim2010-01-301-15/+0
|
* AC railtie should configure helpers path.José Valim2010-01-261-3/+2
|
* Keep ActionController::Base.helpers_dir around for a bit longerJoshua Peek2010-01-261-37/+33
|
* Add a deprecation for helpers_dir.José Valim2010-01-251-0/+12
|
* Fix failing tests after merge.José Valim2010-01-241-0/+1
|
* Ensure helpers work from configured path.José Valim2010-01-241-8/+10
|
* Get rid of initializers global and create i18n railtie.José Valim2010-01-231-0/+2
|
* Stop overriding LoadError.new to return a MissingSourceError (and sometimes ↵Yehuda Katz2010-01-191-1/+1
| | | | nil!)
* Reorganize autoloads:Carlhuda2009-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* Remove ActionMailer helpers and rely on AbstractController one.José Valim2009-11-011-65/+4
|
* Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the ↵Carl Lerche2009-10-161-1/+1
| | | | application's object root)
* Rename /base to /metal and make base.rb and metal.rb top-level to reflect ↵Yehuda Katz2009-08-061-0/+176
their module locations