aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
...
* | Remove random extra spaces from Action Pack and Railties CHANGELOG.mdJon Moss2016-12-271-1/+1
| | | | | | | | [ci skip]
* | [ci skip] Add changelog entry for 86754a8fKasper Timm Hansen2016-11-231-0/+11
| |
* | move CHANGELOG entry to the appropriate file [ci skip]yuuji.yaginuma2016-11-191-0/+6
| | | | | | | | Follow up to #27098
* | Merge pull request #27089 from erickueen/erickueen_fix_26606Rafael Mendonça França2016-11-181-5/+11
|\ \ | | | | | | | | | Fix incorrect output from rails routes when using singular resources …
| * | Fix incorrect output from rails routes when using singular resources issue ↵Erick Reyna2016-11-181-4/+10
|/ / | | | | | | | | | | | | | | | | | | #26606 Rails routes (even rake routes in previous versions) output showed incorrect routes when an application use resource :controller, implying that edit_controller_path match with controller#show. The order of the output has changed to correct this. View #26606 for more information. Added a test case, change unit test in rake to expect the new output. Since the output of resource :controller is changing, the string spected of the railties/test/application/rake_test.rb test_rails_routes_with_controller_environment had to be modified.
* | Merge pull request #26222 from vipulnsward/26134-fixRafael França2016-11-131-0/+8
|\ \ | | | | | | Format and send logs to logger.fatal from DebugExceptions
| * | Format and send logs to logger.fatal from DebugExceptions instead of calling ↵Vipul A M2016-11-121-0/+8
| | | | | | | | | | | | | | | | | | fatal multiple times. Expose tags_text from TaggedLogging to be used for log formatting Fixes #26134
* | | Changelog editsVipul A M2016-11-121-1/+1
|/ /
* | adds support for arbitrary hashes in strong parametersXavier Noria2016-11-111-0/+8
| |
* | add `ActionController::Parameters#merge!`yuuji.yaginuma2016-10-181-0/+4
| | | | | | | | | | This method has the same behavior as `Hash#merge!`, returns current `ActionController::Parameters`.
* | Allow any key in Renderer environment hashSammy Larbi2016-10-151-0/+5
| | | | | | | | | | | | When rendering arbitrary templates, it is helpful to not overwrite `env` keys with nil if they don't match any found in the `RACK_KEY_TRANSLATION` This allows the developer to set the environment to exactly what is needed for rendering.
* | [ci skip] fix typo in Actionpack ChangelogAlex Kitchens2016-10-111-1/+1
| |
* | Remove deprecated support to non-keyword arguments in ↵Rafael Mendonça França2016-10-101-0/+5
| | | | | | | | | | | | `ActionDispatch::IntegrationTest`, `#process`, `#get`, `#post`, `#patch`, `#put`, `#delete`, and `#head`.
* | Remove deprecated `ActionDispatch::IntegrationTest#*_via_redirect`.Rafael Mendonça França2016-10-101-0/+4
| |
* | Remove deprecated `ActionDispatch::IntegrationTest#xml_http_request`Rafael Mendonça França2016-10-101-0/+4
| |
* | Remove deprecated support for passing `:path` and route path as stings in ↵Rafael Mendonça França2016-10-101-1/+5
| | | | | | | | `ActionDispatch::Routing::Mapper#match`
* | Remove deprecated support passing path as `nil` in ↵Rafael Mendonça França2016-10-101-0/+4
| | | | | | | | `ActionDispatch::Routing::Mapper#match`
* | Remove deprecated `cache_control` argument from ↵Rafael Mendonça França2016-10-101-0/+4
| | | | | | | | `ActionDispatch::Static#initialize`
* | Remove deprecated support to passing strings to the middleware stackRafael Mendonça França2016-10-101-0/+4
| |
* | Remove deprecated code in ssl middlewareRafael Mendonça França2016-10-101-0/+8
| |
* | Remove deprecated code in ActionDispatch::Session::SessionRestoreErrorRafael Mendonça França2016-10-101-0/+9
| |
* | Deprecated ActionDispatch::ParamsParser::ParamsParserRafael Mendonça França2016-10-101-0/+5
| | | | | | | | | | | | ActionDispatch::ParamsParser class was removed in favor of ActionDispatch::Http::Parameters so it is better to move the error constant to the new class.
* | Remove deprecated ActionDispatch::ParamsParserRafael Mendonça França2016-10-101-0/+4
| |
* | Remove deprecated code in ActionDispatch::ParamsParser::ParseErrorRafael Mendonça França2016-10-101-0/+9
| |
* | Remove deprecated access to mime types through constantsRafael Mendonça França2016-10-101-0/+4
| |
* | Remove deprecated support to non-keyword arguments #processRafael Mendonça França2016-10-101-0/+5
| |
* | Remove deprecated `xml_http_request` and `xhr` methodsRafael Mendonça França2016-10-101-0/+4
| |
* | Remove deprecated methods in ActionController::ParametersRafael Mendonça França2016-10-101-0/+4
| |
* | Remove deprecated comparing support with `ActionController::Parameters`Rafael Mendonça França2016-10-101-0/+5
| |
* | Remove deprecated support to :text in renderRafael Mendonça França2016-10-101-0/+4
| |
* | Remove deprecated support to :nothing in renderRafael Mendonça França2016-10-091-0/+4
| |
* | Remove deprecated support to `:back` in `redirect_to`Rafael Mendonça França2016-10-091-0/+4
| |
* | Remove deprecated support for status option in headRafael Mendonça França2016-10-091-0/+4
| |
* | Remove deprecation at ActionController::BadRequestRafael Mendonça França2016-10-091-0/+5
| |
* | Remove deprecated methods related to controller filtersRafael Mendonça França2016-10-091-0/+7
| | | | | | | | | | | | | | | | | | | | `skip_action_callback`, `skip_filter`, `before_filter`, `prepend_before_filter`, `skip_before_filter`, `append_before_filter`, `around_filter` `prepend_around_filter`, `skip_around_filter`, `append_around_filter`, `after_filter`, `prepend_after_filter`, `skip_after_filter` and `append_after_filter`.
* | Show an "unmatched constraints" error for mismatching and present paramsChris Carter2016-10-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Currently a misleading "missing required keys" error is thrown when a param fails to match the constraints of a particular route. This commit ensures that these params are recognised as unmatching rather than missing. Note: this means that a different error message will be provided between optimized and non-optimized path helpers, due to the fact that the former does not check constraints when matching routes. Fixes #26470.
* | Add #25546 and #25817 to changelog [ci skip]Philip Nguyen2016-09-231-0/+8
| |
* | make `fixture_file_upload` work in integration testsyuuji.yaginuma2016-09-041-0/+4
| | | | | | | | | | | | | | | | | | Currently, `fixture_file_upload` does not work in integration test. Because, `TestProcess` module has been include in `Session` class, but `fixture_path` can not get from `Session` class. Modify to include `TestProcess` in `IntegrationTest` class in order to get correct value of `fixture_path`.
* | Add changelog entry for #26328.Kasper Timm Hansen2016-08-311-0/+7
| | | | | | | | | | I consider the missing deprecation warning a bug fix from the point of view of the 5.0.x series and forward.
* | Fix nested multiple rootsRyo Hashimoto2016-08-291-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The PR #20940 enabled the use of multiple roots with different constraints at the top level but unfortunately didn't work when those roots were inside a namespace and also broke the use of root inside a namespace after a top level root was defined because the check for the existence of the named route used the global :root name and not the namespaced name. This is fixed by using the name_for_action method to expand the :root name to the full namespaced name. We can pass nil for the second argument as we're not dealing with resource definitions so don't need to handle the cases for edit and new routes. Fixes #26148.
* | Include the content of the flash in the auto-generated etag (#26250)David Heinemeier Hansson2016-08-221-0/+12
| | | | | | Include the content of the flash in the auto-generated etag
* | Return 307 status instead of 301 when rerouting POST requests to SSLChirag Singhal2016-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | When `config.force_ssl` is set to `true`, any POST/PUT/DELETE requests coming in to non-secure url are being redirected with a 301 status. However, when that happens, the request is converted to a GET request and ends up hitting a different action on the controller. Since we can not do non-GET redirects, we can instead redirect with a 307 status code instead to indicate to the caller that a fresh request should be tried preserving the original request method. `rack-ssl` gem which was used to achieve this before we had this middleware directly baked into Rails also used to do the same, ref: https://github.com/josh/rack-ssl/blob/master/lib/rack/ssl.rb#L54 This would be specially important for any apps switching from older version of Rails or apps which expose an API through Rails.
* | Copy edits in the documentation [ci skip]Rafael Mendonça França2016-08-191-3/+5
| |
* | Set the request type if as: is specifiedEverest Munro-Zeisberger2016-08-181-0/+5
| | | | | | | | Documentation & testing
* | Pass over changelogs [ci skip]Vipul A M2016-08-101-5/+5
| |
* | Add changelog entry to Action Pack as well.Kasper Timm Hansen2016-08-071-0/+24
| | | | | | | | | | The entry was a result of a combination of changes in Action View and Action Controller.
* | Fix Accept header overridden when "xhr: true" in integration testDavid Chen2016-08-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In integration test when specify the "Accept" header with "xhr: true" option, the Accept header is overridden with a default xhr Accept header. The issue only affects HTTP header "Accept" but not CGI variable "HTTP_ACCEPT". For example: get '/page', headers: { 'Accept' => 'application/json' }, xhr: true # This is WRONG! And the response.content_type is also affected. # It should be "application/json" assert_equal "text/javascript, text/html, ...", request.accept assert_equal 'text/html', response.content_type The issue is in `ActionDispatch::Integration::RequestHelpers`. When setting "xhr: true" the helper sets a default HTTP_ACCEPT if blank. But the code doesn't consider supporting both HTTP header style and CGI variable style. For detail see this GitHub issue: https://github.com/rails/rails/issues/25859
* | Merge pull request #25913 from chrisarcand/fix-keyed-defaults-with-rootRafael Mendonça França2016-07-271-0/+7
|\ \ | | | | | | | | | Fix keyed defaults with root
| * | Update changelogChris Arcand2016-07-261-0/+7
|/ /
* | CHANGELOG for https://github.com/rails/rails/pull/25257 [ci skip]Prathamesh Sonpatki2016-07-171-1/+1
| | | | | | | | - Also minor weekly CHANGELOG cleanup.