Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #8112 from rails/encrypted_cookies | Santiago Pastorino | 2012-11-15 | 2 | -34/+95 |
|\ | | | | | Encrypted cookies | ||||
| * | Disallow ability to use EncryptedCookieJar with DummyKeyGenerator | Santiago Pastorino | 2012-11-03 | 1 | -0/+5 |
| | | | | | | | | | | Developers must set config.secret_key_base in config/initializers/secret_token.rb | ||||
| * | Rename secret_token_key to secret_key_base | Santiago Pastorino | 2012-11-03 | 1 | -3/+3 |
| | | |||||
| * | Move ensure_secret_secure to DummyKeyGenerator | Santiago Pastorino | 2012-11-03 | 1 | -24/+0 |
| | | |||||
| * | Allow users to change the default salt if they want, shouldn't be necessary | Santiago Pastorino | 2012-11-03 | 1 | -11/+22 |
| | | |||||
| * | Add encrypted cookie store | Santiago Pastorino | 2012-11-03 | 1 | -3/+20 |
| | | |||||
| * | Add cookie.encrypted which returns an EncryptedCookieJar | Santiago Pastorino | 2012-11-03 | 1 | -0/+48 |
| | | | | | | | | | | | | | | | | | | How to use it? cookies.encrypted[:discount] = 45 => Set-Cookie: discount=ZS9ZZ1R4cG1pcUJ1bm80anhQang3dz09LS1mbDZDSU5scGdOT3ltQ2dTdlhSdWpRPT0%3D--ab54663c9f4e3bc340c790d6d2b71e92f5b60315; path=/ cookies.encrypted[:discount] => 45 | ||||
| * | Sign cookies using key deriver | Santiago Pastorino | 2012-11-03 | 1 | -15/+19 |
| | | |||||
* | | Revert "Merge pull request #8017 from jcoglan/objectless_sessions" | Jon Leighton | 2012-11-09 | 1 | -24/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 36376560fdd02f955ae3bf6b7792b784443660ad, reversing changes made to 3148ed9a4bb7efef30b846dc945d73ceebcc3f0f. Conflicts: actionpack/lib/action_dispatch/middleware/flash.rb Reason: it broke Sam's CI https://github.com/rails/rails/pull/8017#issuecomment-10210655 | ||||
* | | Remove free usage of #tap | Carlos Antonio da Silva | 2012-11-08 | 1 | -3/+4 |
| | | |||||
* | | Merge pull request #8017 from jcoglan/objectless_sessions | Jon Leighton | 2012-11-08 | 1 | -9/+23 |
|\ \ | | | | | | | Store FlashHashes in the session as plain hashes | ||||
| * | | Store FlashHashes in the session as plain hashes rather than custom objects ↵ | James Coglan | 2012-11-03 | 1 | -9/+23 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with unstable class names and instance variables. Refactor FlashHash to take values for its ivars in the constructor, to pretty up FlashHash.from_session_value. Remove stale comment on FlashHash: it is no longer Marshaled in the session so we can change its implementation. Remove blank lines I introduced in controller/test_case.rb. Unit tests for FlashHash#to_session_value. Put in a compatibility layer to accept FlashHash serializations from Rails 3.0+. Test that Rails 3.2 session flashes are correctly converted to the new format. Remove code path for processing Rails 3.0 FlashHashes since they can no longer deserialize. | ||||
* / | Add ensure block to make sure the state is properly restored | Carlos Antonio da Silva | 2012-11-04 | 1 | -1/+1 |
|/ | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-11-03 | 5 | -14/+14 |
|\ | | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/mime_responds.rb activerecord/lib/active_record/attribute_methods.rb guides/source/working_with_javascript_in_rails.md | ||||
| * | 1.9 hash syntax changes to docs | AvnerCohen | 2012-10-31 | 5 | -14/+14 |
| | | |||||
* | | memoize calculated ip without additional variable | Sergey Nartimov | 2012-11-01 | 1 | -6/+4 |
| | | | | | | | | There is no need in additional `@calculated_ip` instance variable. | ||||
* | | Fix #8086 (BestStandardsSupport rewrites app X-UA-Compatible header, now ↵ | Nikita Afanasenko | 2012-11-01 | 1 | -1/+7 |
|/ | | | | | | | appends). Now `BestStandardsSupport` middleware appends it's `X-UA-Compatible` value to app's value. Also test for `BestStandardsSupport` middleware added. | ||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-10-11 | 1 | -1/+1 |
|\ | | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb | ||||
| * | Space between "every" and "time" | schneems | 2012-10-02 | 1 | -1/+1 |
| | | |||||
* | | rename page_cache_extension option to default_static_extension | Francesco Rodriguez | 2012-10-03 | 1 | -1/+1 |
| | | |||||
* | | Failsafe exception returns text/plain. | Steve Klabnik | 2012-10-01 | 1 | -3/+3 |
|/ | | | | | | | It's best to just return text/plain when something has gone terribly wrong. Fixes #5660. | ||||
* | Merge pull request #7444 from szimek/params_parser_raises_parsing_error | Aaron Patterson | 2012-09-26 | 1 | -5/+12 |
|\ | | | | | Raise generic ParseError exception when ParamsParser fails parsing request params | ||||
| * | Make ActionDispatch::ParamsParser::ParseError#original_exception return the ↵ | Szymon Nowak | 2012-08-27 | 1 | -4/+10 |
| | | | | | | | | original exception. | ||||
| * | Fix ActionDispatch::ParamsParser::ParseError message for XML and JSON parsers. | Szymon Nowak | 2012-08-24 | 1 | -4/+2 |
| | | |||||
| * | Raise generic ParseError exception when ActionDispatch::ParamsParser fails ↵ | Szymon Nowak | 2012-08-24 | 1 | -2/+5 |
| | | | | | | | | parsing request params. | ||||
* | | log 404 status when ActiveRecord::RecordNotFound was raised (#7646) | Yves Senn | 2012-09-17 | 1 | -1/+5 |
| | | |||||
* | | Improve error message for memcache session store when dalli isn't loaded in app | Guillermo Iguaran | 2012-09-07 | 1 | -2/+6 |
| | | |||||
* | | More fixes for action pack tests with Dalli. | Arun Agrawal | 2012-09-06 | 1 | -3/+3 |
| | | |||||
* | | Merge pull request #7495 from steveklabnik/issue_7478 | Aaron Patterson | 2012-09-01 | 1 | -0/+8 |
|\ \ | | | | | | | Properly reset the session on reset_session | ||||
| * | | Override rack's destroy_session in cookie store | Andreas Loupasakis | 2012-09-01 | 1 | -0/+8 |
| | | | |||||
* | | | Revert "Merge pull request #7452 from arunagw/memcached_dalli" | Jon Leighton | 2012-08-31 | 1 | -3/+3 |
|/ / | | | | | | | | | | | | | This reverts commit 7256cb53e0c34e510a4d59a50d120c0358cf1d99, reversing changes made to 6ebe22c3ae716d089af1e5090ddb0d12b31af8ac. Reason: A test was failing. | ||||
* / | More fixes for action pack tests with Dalli. | Arun Agrawal | 2012-08-27 | 1 | -3/+3 |
|/ | |||||
* | load active_support/core_ext/module/delegation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 4 | -4/+0 |
| | |||||
* | adds a missing require from Active Support | Xavier Noria | 2012-07-28 | 1 | -0/+1 |
| | | | | This file uses mattr_accessor. | ||||
* | Remove ActionDispatch::Head middleware in favor of Rack::Head | Santiago Pastorino | 2012-07-23 | 1 | -18/+0 |
| | | | | Closes #7110 there's more work to do on rack-cache issue 69 | ||||
* | Rename RouteInspector to RoutesInspector | Carlos Antonio da Silva | 2012-07-08 | 1 | -2/+1 |
| | | | | Follow the consistency defined in dbc43bc. | ||||
* | move route_inspector to actionpack | @schneems and @mattt | 2012-07-07 | 1 | -5/+7 |
| | | | | this is so we can show route output in the development when we get a routing error. Railties can use features of ActionDispatch, but ActionDispatch should not depend on Railties. | ||||
* | show routes while debugging RoutingError | schneems | 2012-07-07 | 2 | -3/+20 |
| | | | | If someone receives a routing error, they likely need to view the routes. Rather than making them visit '/rails/info/routes' or run `rake routes` we can give them that information on the page. | ||||
* | Use status, content_type, body method signature for render too | Santiago Pastorino | 2012-06-14 | 1 | -4/+3 |
| | |||||
* | Refactor public exceptions to reuse render format method | Carlos Antonio da Silva | 2012-06-14 | 1 | -9/+6 |
| | |||||
* | content_type is already a Mime::Type object | Santiago Pastorino | 2012-06-12 | 1 | -1/+1 |
| | |||||
* | This consider_all_requests_local doesn't make sense | Santiago Pastorino | 2012-06-12 | 1 | -3/+2 |
| | | | | | This middleware is only for Public Exceptions. This follows bd8c0b8a | ||||
* | Return proper format on exceptions | Santiago Pastorino | 2012-06-11 | 1 | -14/+36 |
| | |||||
* | Raise ActionController::BadRequest for malformed parameter hashes. | Andrew White | 2012-05-20 | 1 | -1/+2 |
| | | | | | | | | | | | | | | Currently Rack raises a TypeError when it encounters a malformed or ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this through to the application this commit captures the exception and re-raises it using a new ActionController::BadRequest exception. The new ActionController::BadRequest exception returns a 400 error instead of the 500 error that would've been returned by the original TypeError. This allows exception notification libraries to ignore these errors if so desired. Closes #3051 | ||||
* | Add the #unshift method to the middleware stack | Rich Healey | 2012-05-18 | 1 | -0/+5 |
| | | | | | | The docs suggest that the middleware stack is an Array, so I've added the unshift method to it. Originally I added some more Array methods, but it was agreed that they lacked usecases. | ||||
* | Removing ==Examples and last blank lines of docs from actionpack | Francesco Rodriguez | 2012-05-15 | 2 | -2/+2 |
| | |||||
* | Move require to where it's needed | Santiago Pastorino | 2012-05-11 | 1 | -1/+2 |
| | |||||
* | doc edits [ci skip] | Vijay Dev | 2012-05-06 | 1 | -3/+2 |
| | |||||
* | Merge pull request #5924 from cjolly/signed-cookies-docs | Vijay Dev | 2012-05-06 | 1 | -3/+5 |
|\ | | | | | Improve signed cookies documentation |