Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Action Pack] require => require_relative | Akira Matsuda | 2017-10-21 | 1 | -1/+1 |
| | | | | | This basically reverts e9fca7668b9eba82bcc832cb0061459703368397, d08da958b9ae17d4bbe4c9d7db497ece2450db5f, d1fe1dcf8ab1c0210a37c2a78c1ee52cf199a66d, and 68eaf7b4d5f2bb56d939f71c5ece2d61cf6680a3 | ||||
* | Load Parameters configurations on :action_controller only once | Alberto Almagro | 2017-08-14 | 1 | -1/+1 |
| | | | | Fixes regression ActionController::UnpermittedParameters not raised. The inner hook was being executed twice, once when ActionController::Base was loaded and again when ActionController::API was loaded. As options.delete operations inside the block are not idempotent, the second time it was run there was no configuration option available | ||||
* | Merge pull request #29559 from kirs/eager-load-controller-actions | Rafael França | 2017-08-11 | 1 | -0/+6 |
|\ | | | | | Eager load controller actions to reduce response time of the first request | ||||
| * | Eager load controller and mailer actions | Kir Shatrov | 2017-07-29 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | On the first request, ActionController::Base#action_methods computes and memoized the list of available actions [1]. With this PR we move this expensive operation into eager load step to reduce response time of the first request served in production. This also reduces the memory footprint when running on forking server like Unicorn. [1] https://github.com/rails/rails/blob/a3813dce9a0c950a4af7909111fa730a2622b1db/actionpack/lib/abstract_controller/base.rb#L66-L77 | ||||
* | | Use frozen string literal in actionpack/ | Kir Shatrov | 2017-07-29 | 1 | -0/+2 |
|/ | |||||
* | Protect from forgery by default | Lisa Ugray | 2017-07-10 | 1 | -0/+8 |
| | | | | | | | | Rather than protecting from forgery in the generated ApplicationController, add it to ActionController::Base by config. This configuration defaults to false to support older versions which have removed it from their ApplicationController, but is set to true for Rails 5.2. | ||||
* | Fix end | Rafael Mendonça França | 2017-07-04 | 1 | -0/+1 |
| | |||||
* | Load the Parameters configurations on the right time | Rafael Mendonça França | 2017-07-04 | 1 | -7/+8 |
| | | | | | | | We need to configure it only when ActionController::Base is loaded otherwise configs on initializers will not work. Closes #29527. | ||||
* | [Action Controller] require => require_relative | Akira Matsuda | 2017-07-01 | 1 | -1/+1 |
| | |||||
* | [docs] fix ActionController documentation | Hrvoje Šimić | 2017-03-12 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Add more rubocop rules about whitespaces | Rafael Mendonça França | 2016-10-29 | 1 | -1/+1 |
| | |||||
* | modernizes hash syntax in actionpack | Xavier Noria | 2016-08-06 | 1 | -1/+1 |
| | |||||
* | Merge pull request #15933 from rafael/master | Rafael Mendonça França | 2014-06-27 | 1 | -0/+4 |
|\ | | | | | | | | | | | Add always permitted parameters as a configurable option. [Rafael Mendonça França + Gary S. Weaver] | ||||
| * | Add always_permitted_parameters as an option. | Rafael Chacón | 2014-06-26 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | * This commit adds back the always_permitted_parameters configuration option to strong paramaters. * The initial pull requests where this feature was added are the following: - https://github.com/rails/rails/pull/12682 - https://github.com/rails/strong_parameters/pull/174 | ||||
* | | Add missing av/railtie require | Łukasz Strzałkowski | 2013-12-22 | 1 | -0/+1 |
|/ | |||||
* | Do not load AV inside AP | Łukasz Strzałkowski | 2013-08-25 | 1 | -1/+0 |
| | | | | Move that part to AV railtie | ||||
* | Restore and adapt the implementation reverted at | Rafael Mendonça França | 2013-01-19 | 1 | -10/+12 |
| | | | | | | https://github.com/rails/rails/commit/cc1c3c5be061e7572018f734e5239750ab449e3f Now instead of raise, we log by default in development and test | ||||
* | Added ability to raise or log on unpermitted params. | Thomas Drake-Brockman | 2013-01-20 | 1 | -6/+9 |
| | |||||
* | Revert "unpermitted params" exception -- it's just not going to work. See ↵ | David Heinemeier Hansson | 2013-01-08 | 1 | -10/+7 |
| | | | | the discussion on https://github.com/rails/strong_parameters/pull/75. | ||||
* | Rename the configuration to raise_on_unpermitted_parameters | Rafael Mendonça França | 2013-01-05 | 1 | -2/+4 |
| | | | | Also changed the exception to UnpermittedParameters | ||||
* | Ensure that raise_on_unexpected_params configuration will work | Rafael Mendonça França | 2013-01-05 | 1 | -9/+7 |
| | |||||
* | Allow developers to enable raising of exception when unexpected params are ↵ | Thomas Drake-Brockman | 2013-01-05 | 1 | -6/+9 |
| | | | | provided. | ||||
* | :fire: Rails asset id support | Joshua Peek | 2012-10-15 | 1 | -1/+0 |
| | |||||
* | Do not set removed option | Rafael Mendonça França | 2012-10-04 | 1 | -1/+0 |
| | | | | | Sine page caching was remove from the core we don't have the page_cache_directory anymore | ||||
* | Set AC::Parameters.permit_all_parameters explicitly to false when ↵ | Guillermo Iguaran | 2012-09-19 | 1 | -1/+1 |
| | | | | config.action_controller.permit_all_parameters is not present | ||||
* | Add config.action_controller.permit_all_attributes to bypass ↵ | Guillermo Iguaran | 2012-09-16 | 1 | -0/+4 |
| | | | | StrongParameters protection | ||||
* | Get rid of config.preload_frameworks in favor of config.eager_load_namespaces | José Valim | 2012-08-21 | 1 | -0/+2 |
| | | | | | | | The new option allows any Ruby namespace to be registered and set up for eager load. We are effectively exposing the structure existing in Rails since v3.0 for all developers in order to make their applications thread-safe and CoW friendly. | ||||
* | Simplify helpers handling. Ensure Metal can run AC hooks. | José Valim | 2012-03-15 | 1 | -11/+11 |
| | |||||
* | Add ActionController::HTTP | Santiago Pastorino | 2012-03-14 | 1 | -3/+10 |
| | | | | | | More info http://edgeguides.rubyonrails.org/api_app.html [Carlos Antonio da Silva & Santiago Pastorino] | ||||
* | adds a nodoc [ci skip] | Vijay Dev | 2012-03-01 | 1 | -1/+1 |
| | | | | We have an empty api doc page otherwise :) | ||||
* | Deprecate RAILS_CACHE constant. | kennyj | 2012-01-18 | 1 | -1/+1 |
| | |||||
* | Rails initialization with initialize_on_precompile = false should set assets_dir | Santiago Pastorino | 2012-01-10 | 1 | -1/+4 |
| | |||||
* | Fix diagnostics page for routing errors. | José Valim | 2011-12-15 | 1 | -2/+0 |
| | |||||
* | Default relative_url_root to ENV["RAILS_RELATIVE_URL_ROOT"]. Fixes #3365 | Piotrek Okoński | 2011-12-12 | 1 | -0/+1 |
| | |||||
* | move show_detailed_exceptions? to Rescue module | lest | 2011-11-22 | 1 | -0/+2 |
| | |||||
* | [IMPORTANT] Make "sprockets/railtie" require explicit. | José Valim | 2011-06-29 | 1 | -1/+0 |
| | | | | | | | | | | This makes "sprockets/railtie" explicit. This means that sprockets will be loaded when you require "rails/all". If you are not using requiring "rails/all", you need to manually load it with all other framework railties. In order to be complete, this commit also adds --skip-sprockets to the rails generator. | ||||
* | Move controller configs to sprockets own railtie. | José Valim | 2011-04-17 | 1 | -1/+1 |
| | |||||
* | Unify sprockets config options | Joshua Peek | 2011-03-30 | 1 | -1/+1 |
| | |||||
* | Rename option to config.asset_pipeline | Joshua Peek | 2011-03-29 | 1 | -1/+1 |
| | |||||
* | Copy use_sprockets config | Joshua Peek | 2011-03-29 | 1 | -0/+1 |
| | |||||
* | Clean up asset_host and asset_path. | José Valim | 2010-12-09 | 1 | -2/+2 |
| | |||||
* | Provide a cleaner syntax for paths configuration that does not rely on ↵ | José Valim | 2010-10-06 | 1 | -4/+4 |
| | | | | method_missing. | ||||
* | Call it compile_methods! and do the same on AM. | José Valim | 2010-09-27 | 1 | -2/+2 |
| | |||||
* | Compile ActionController::Base.config's methods to avoid method_missing ↵ | thedarkone | 2010-09-27 | 1 | -0/+10 |
| | | | | overhead. | ||||
* | Do not require passing :app to mounted helpers, it's actually useless and ↵ | Piotr Sarnacki | 2010-09-08 | 1 | -1/+1 |
| | | | | not DRY | ||||
* | Cleanup deprecation warnings in Action Controller | Carlos Antonio da Silva | 2010-09-06 | 1 | -32/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Set only helpers_path on inherited hook in action_controller/railtie.rb and ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -0/+9 |
| | | | | use helper(:all) just after that | ||||
* | Moved ActionMailer and ActionController railties options to inherited hook | Piotr Sarnacki | 2010-09-03 | 1 | -11/+3 |
| | | | | | | | | | | | 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 Sarnacki | 2010-09-03 | 1 | -2/+2 |
| | | | | ActionMailer::Railties::RoutesHelper to AbstractController::Railties::RoutesHelpers | ||||
* | Include application's helpers and router helpers by default, but include ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -1/+2 |
| | | | | engine's ones for controllers inside isolated namespace |