aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/railties
Commit message (Collapse)AuthorAgeFilesLines
* Fix call sitesGannon McGibbon2018-10-021-1/+1
|
* Use frozen string literal in actionpack/Kir Shatrov2017-07-291-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Simplify helpers handling. Ensure Metal can run AC hooks.José Valim2012-03-152-24/+22
|
* Add ActionController::HTTPSantiago Pastorino2012-03-141-1/+0
| | | | | | More info http://edgeguides.rubyonrails.org/api_app.html [Carlos Antonio da Silva & Santiago Pastorino]
* Rely on a public contract between railties instead of accessing railtie ↵José Valim2011-11-231-3/+4
| | | | methods directly.
* 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.
* Move ActionController::Railties::RoutesHelpers and ↵Piotr Sarnacki2010-09-031-17/+0
| | | | ActionMailer::Railties::RoutesHelper to AbstractController::Railties::RoutesHelpers
* Include application's helpers and router helpers by default, but include ↵Piotr Sarnacki2010-09-031-0/+17
| | | | engine's ones for controllers inside isolated namespace
* This is not neededPiotr Sarnacki2010-09-031-26/+0
|
* Add mounted_helpers to routesPiotr Sarnacki2010-09-031-0/+26
| | | | | | | | | | | | | | | | 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)
* Clean up AM and AC railties.José Valim2010-07-241-14/+0
|
* Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵José Valim2010-06-241-56/+0
| | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
* Consistent routing languageJoshua Peek2010-03-301-3/+3
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+2
|
* Move application configuration to the application configuration object, ↵José Valim2010-03-261-1/+1
| | | | remove railtie_name and engine_name and allow to set the configuration object.
* Rename named_url_helpers to url_helpers and url_helpers to url_forCarlhuda2010-02-261-1/+1
|
* Fix 1.9 issueYehuda Katz2010-02-261-1/+1
|
* Final pass at removing the router from a global constantCarlhuda2010-02-251-0/+14
|
* Makes send_file work again by deferring to Rack::Sendfile. Carlhuda2010-02-231-9/+1
| | | | | | | | | | * Add the Rack::Sendfile middleware * Make the header to use configurable via config.action_dispatch.x_sendfile_header (default to "X-Sendfile"). * Add Railties tests to confirm that these work * Remove the :stream, :buffer_size, and :x_senfile default options to send_file * Change the log subscriber to always say "Sent file" * Add deprecation warnings for options that are now no-ops Note that servers can configure this by setting X-Sendfile-Type. Hosting companies and those creating packages of servers specially designed for Rails applications are encouraged to specify this header so that this can work transparently.
* Rename Rails::Subscriber to Rails::LogSubscriberPrem Sichanugrist2010-02-161-1/+1
|
* Lookup the status code and rework the Completed line a bitDavid Heinemeier Hansson2010-02-051-2/+1
|
* Make filter parameters based on request, so they can be modified for ↵José Valim2010-01-211-1/+5
| | | | anything in the middleware stack.
* Move parameters to the top on logging.José Valim2010-01-191-2/+6
|
* Add ActionDispatch::Railties::Subscriber and finish tidying up the logging.José Valim2010-01-171-6/+1
|
* Do not send the whole controller in notifications, cherry pick required pieces.José Valim2010-01-151-10/+7
|
* Small tweaks in ActionController subscriber messages format.José Valim2010-01-151-2/+2
|
* Tidy up ActiveRecord and Views runtime information on process action logger.José Valim2010-01-141-1/+2
|
* Test fragment/page cache and send data/file notifications.José Valim2010-01-131-5/+5
|
* Add subscriber for ActionPack and move all logging inside it.José Valim2010-01-131-0/+62