aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix typo in Action Pack changelog. [ci skip]Mike Naberezny2015-03-141-1/+1
|
* Drop request class from RouteSet constructor.Aaron Patterson2015-03-041-0/+7
| | | | | If you would like to use a custom request class, please subclass and implemet the `request_class` method.
* Merge pull request #18775 from yasyf/issue_5122Rafael Mendonça França2015-03-031-0/+10
|\ | | | | | | Fallback to RAILS_RELATIVE_URL_ROOT in `url_for`
| * Fallback to RAILS_RELATIVE_URL_ROOT in `url_for`.Yasyf Mohamedali2015-02-241-0/+10
| | | | | | | | | | | | Fixed an issue where the `RAILS_RELATIVE_URL_ROOT` environment variable is not prepended to the path when `url_for` is called. If `SCRIPT_NAME` (used by Rack) is set, it takes precedence.
* | Merge pull request #15806 from tgxworld/partition_routes_during_setupAaron Patterson2015-03-021-0/+5
|\ \ | | | | | | Partition routes during setup.
| * | Partition routes during setup.Guo Xiang Tan2015-02-261-0/+5
| | | | | | | | | | | | | | | | | | | | | Partitioning of all the routes is currently being done during the first request. Since there is no need to clear the cache for `partitioned_routes` when adding a new route. We can move the partitioning of the routes during setup time.
* | | 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
| |