aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/railties/paths.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove the ability for engines to serve assets from the public directory.José Valim2011-04-151-8/+0
|
* Set proper engine's asset directories when assets are served from engine.Piotr Sarnacki2010-12-161-0/+8
| | | | | | | | | When using stylesheet_link_tag(:all) or javascript_include_tag(:all), assets directories are searched for css or js files. When config.serve_static_assets is set to true, those files can be served directly from engine's directories. That's why assets paths should be set individually for controllers inside engine if we want to serve static assets with ActionDispatch::Static
* Add config.action_controller.include_all_helpers, by default it is set to true.Piotr Sarnacki2010-11-181-1/+3
| | | | | | | 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.
* Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-061-2/+4
| | | | method_missing.
* Forgot to move that line to railtie on rebasePiotr Sarnacki2010-09-031-1/+1
|
* Include all helpers from non-namespaced enginesPiotr Sarnacki2010-09-031-9/+3
|
* Set only helpers_path on inherited hook in action_controller/railtie.rb and ↵Piotr Sarnacki2010-09-031-4/+2
| | | | use helper(:all) just after that
* Moved ActionMailer and ActionController railties options to inherited hookPiotr Sarnacki2010-09-031-0/+28
This change is needed, because we must take namespace into account and if controller's/mailer's class is namespaced, engine's paths should be set instead of application's ones. The nice side effect of this is removing unneeded logic in ActionController::Base.inherited - now the helpers_path should be set correctly even for engine's controllers, so helper(:all) will always include correct helpers.