aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #18434 from brainopia/change_filter_on_rails_info_routesRichard Schneeman2015-02-261-0/+8
|\ | | | | Change filter on /rails/info/routes to use an actual path regexp from rails
| * Change filter on /rails/info/routes to use an actual path regexp from railsbrainopia2015-02-231-0/+8
| | | | | | | | | | | | | | | | Change filter on /rails/info/routes to use an actual path regexp from rails and not approximate javascript version. Oniguruma supports much more extensive list of features than javascript regexp engine. Fixes #18402.
* | add CHANGELOG for f6e293ec54f02f83cdb37502bea117f66f87bcae. [ci skip]Yves Senn2015-02-251-0/+7
| |
* | Merge pull request #19060 from iainbeeston/deprecate-skip-action-callbackRafael Mendonça França2015-02-241-0/+5
|\ \ | |/ |/| Deprecate `AbstractController::Callbacks#skip_action_callback`
| * Deprecate `AbstractController::Callbacks#skip_action_callback`Iain Beeston2015-02-241-0/+5
| | | | | | | | | | | | | | | | | | | | As part of #19029, in future `skip_before_action`, `skip_after_action` and `skip_around_action` will raise an ArgumentError if the specified callback does not exist. `skip_action_callback` calls all three of these methods and will almost certainly result in an ArgumentError. If anyone wants to remove all three callbacks then they can still call the three individual methods. Therefore let's deprecate `skip_action_callback` now and remove it when #19029 is merged.
* | some indenting and punctuation fixes. [ci skip]Yves Senn2015-02-231-10/+11
|/
* Fix changelog indent [ci skip]Carlos Antonio da Silva2015-02-201-2/+2
|
* Aliased the ActionDispatch::Request#uuid method with ↵David Ilizarov2015-02-201-0/+6
| | | | ActionDispatch::Request#request_id
* Merge pull request #18917 from lautis/non-string-csrf-tokenRafael Mendonça França2015-02-181-0/+5
|\ | | | | | | Handle non-string authenticity tokens
| * Handle non-string authenticity tokensVille Lautanala2015-02-121-0/+5
| | | | | | | | Non-string authenticity tokens raised NoMethodError when decoding the masked token.
* | Implement http_cache_forever to ActionControllerArthur Neves2015-02-151-0/+4
|/ | | | | | | | | Add http_cache_forever to ActionController, so we can cache results forever. Things like static pages are a good candidate for this type of caching. This cache only controls caching headers, so it is up to the browser to cache those requests.
* Merge pull request #11790 from printercu/patch-3Rafael Mendonça França2015-02-121-0/+5
|\ | | | | | | ActionController#translate supports symbols
| * ActionController#translate also lookups shortcut without action nameMax Melentiev2013-10-221-1/+2
| |
| * ActionController#translate supports symbolsprintercu2013-09-251-0/+4
| | | | | | | | Made it similar to views helper.
* | fix typo in fresh_when example [ci skip]yuuji.yaginuma2015-02-121-3/+3
| |
* | Accept a collection in fresh_when and stale?claudiob2015-02-101-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The methods `fresh_when` and `stale?` from ActionController::ConditionalGet accept a single record as a short form for a hash. For instance ```ruby def show @article = Article.find(params[:id]) fresh_when(@article) end ``` is just a short form for: ```ruby def show @article = Article.find(params[:id]) fresh_when(etag: @article, last_modified: @article.created_at) end ``` This commit extends `fresh_when` and `stale?` to also accept a collection of records, so that a short form similar to the one above can be used in an `index` action. After this commit, the following code: ```ruby def index @article = Article.all fresh_when(etag: @articles, last_modified: @articles.maximum(:created_at)) end ``` can be simply written as: ```ruby def index @article = Article.all fresh_when(@articles) end ```
* | Explicitly ignored wildcard verbs from head_routesTerence Sun2015-02-081-0/+20
| | | | | | | | | | | | In match_head_routes, deleted the routes in which request.request_method was empty (matches all HTTP verbs) when responding to a HEAD request. This prevents catch-all routes (such as Racks) from intercepting the HEAD request. Fixes #18698
* | Merge pull request #18771 from kirs/deprecate-xhrRafael Mendonça França2015-02-051-0/+13
|\ \ | | | | | | Migrating xhr methods to keyword arguments syntax
| * | Migrating xhr methods to keyword arguments syntaxKir Shatrov2015-02-011-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in `ActionController::TestCase` and `ActionDispatch::Integration` Old syntax: `xhr :get, :create, params: { id: 1 }` New syntax example: `get :create, params: { id: 1 }, xhr: true`
* | | unify CHANGELOG format. [ci skip]Yves Senn2015-01-311-4/+5
|/ /
* | Improve CHANGELOGRafael Mendonça França2015-01-291-6/+5
| |
* | Switch to kwargs in ActionController::TestCase and ActionDispatch::IntegrationKir Shatrov2015-01-291-0/+12
| | | | | | | | | | | | | | | | Non-kwargs requests are deprecated now. Guides are updated as well. `post url, nil, nil, { a: 'b' }` doesn't make sense. `post url, params: { y: x }, session: { a: 'b' }` would be an explicit way to do the same
* | Preserve default url options when generating URLsTekin Suleyman2015-01-281-0/+8
| | | | | | | | | | Fixes an issue that would cause default_url_options to be lost when generating URLs with fewer positional arguments than parameters in the route definition.
* | Add CHANGELOG entryRafael Mendonça França2015-01-281-0/+6
| |
* | Add ActionController::Base.renderbrainopia2015-01-221-0/+3
| |
* | Add ActionController::Rendererbrainopia2015-01-221-0/+5
| | | | | | | | Render arbitrary templates outside of controller actions
* | Support `:assigns` option when rendering with controllers/mailers.brainopia2015-01-221-0/+4
| |
* | formatting pass over CHANGELOGs. [ci skip]Yves Senn2015-01-101-1/+1
| |
* | Merge pull request #18423 from jone/remove-default-headerYves Senn2015-01-091-0/+5
|\ \ | | | | | | | | | Default headers, removed in controller actions, will not be reapplied to the test response
| * | Default headers, removed in controller actions, will not be reapplied to the ↵Jonas Baumann2015-01-091-0/+5
|/ / | | | | | | test response.
* | Deprecate all *_filter callbacks in favor of *_action callbacksAbdelkader Boudih2015-01-081-1/+5
| |
* | Fix the example (for realz)David Heinemeier Hansson2015-01-081-1/+1
| |
* | Fix the exampleDavid Heinemeier Hansson2015-01-081-1/+1
| |
* | Add prepend option to protect_from_forgery.Josef Šimánek2015-01-081-0/+23
| |
* | Remove ActionController::HideActions (closes #18336)brainopia2015-01-061-0/+4
| |
* | Remove respond_to/respond_with placeholder methodsCarlos Antonio da Silva2015-01-041-0/+5
| | | | | | | | This functionality has been extracted to the responders gem.
* | Remove deprecated assertion filesRafael Mendonça França2015-01-041-0/+4
| |
* | Remove deprecated usage of string keys in URL helpersRafael Mendonça França2015-01-041-0/+4
| |
* | Remove deprecated `only_path` option on `*_path` helpersRafael Mendonça França2015-01-041-0/+4
| |
* | Remove deprecated `NamedRouteCollection#helpers`Rafael Mendonça França2015-01-041-0/+4
| |
* | Remove deprecated support to define routes with `:to` option thatRafael Mendonça França2015-01-041-0/+4
| | | | | | | | doesn't contain `#`
* | Remove deprecated `ActionDispatch::Response#to_ary`Rafael Mendonça França2015-01-041-0/+4
| |
* | Remove deprecated `ActionDispatch::Request#deep_munge`Rafael Mendonça França2015-01-041-0/+4
| |
* | Remove deprecated `ActionDispatch::Http::Parameters#symbolized_path_parameters`Rafael Mendonça França2015-01-041-0/+4
| |
* | Remove deprecated option `use_route` in controller testsRafael Mendonça França2015-01-041-0/+4
| |
* | Merge pull request #17978 from kommen/fixed-pr-14903Rafael Mendonça França2015-01-021-0/+11
|\ \ | | | | | | | | | | | | | | | | | | Ensure append_info_to_payload is called even if an exception is raised. Conflicts: actionpack/CHANGELOG.md
| * | Ensure append_info_to_payload is called even if an exception is raised.Dieter Komendera2014-12-101-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | See: * https://github.com/rails/rails/pull/14903 * https://github.com/roidrage/lograge/issues/37 Some code by mxrguspxrt from #14903.
* | | Correctly use the response's status code calling headRobin Dupret2014-12-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 20fece1 introduced the `_status_code` method to fix calls to `head :ok`. This method has been added on both ActionController::Metal and ActionDispatch::Response. As for the latter, this method is just equivalent to the `response_code` one so commit aefec3c removed it from the `Reponse` object so call to the `_status_code` method on an ActionController::Base instance would be handled by the `Metal` class (which `Base` inherits from) but the status code is not updated according to the response at this level. The fix is to actually rely on `response_code` for ActionController::Base instances but this method doesn't exist for bare Metal controllers so we need to define it.
* | | Remove single space response body for head requestPrathamesh Sonpatki2014-12-301-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The single space response was added due to a bug in safari in https://github.com/rails/rails/commit/cb0f8fda9652c4d24d04693bdb82cecd3b067e5c and https://github.com/rails/rails/commit/807df4fcf021fc4d15972aa1c17ba7398d43ab0d. - This was removed from the `render nothing: true` in https://github.com/rails/rails/pull/14883. - Removing it from response of :head also. As :head is more obvious alternative to call `render nothing: true`(http://guides.rubyonrails.org/layouts_and_rendering.html#using-head-to-build-header-only-responses), removing it from head method also. - Closes #18253.
* | | Merge pull request #18251 from tjgrathwell/fix-polymorphic-routes-to-modelRafael Mendonça França2014-12-301-0/+4
| | | | | | | | | | | | Fix form_for to work with objects that implement to_model