Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add :nodoc: to AV StylesheetIncludeTag, JavascriptIncludeTag and AssetIncludeTag | Francesco Rodriguez | 2012-06-19 | 3 | -4/+4 |
| | |||||
* | Merge pull request #6777 from route/logger_in_metal_tests | Carlos Antonio da Silva | 2012-06-19 | 1 | -0/+17 |
|\ | | | | | | | Added test for case when view doesn't have logger method when using ActionController::Metal controller. | ||||
| * | Added test for case when view doesn't have logger method when using ↵ | Dmitry Vorotilin | 2012-06-19 | 1 | -0/+17 |
| | | | | | | | | ActionController::Metal controller. | ||||
* | | Ensure that cache-control headers are merged | James Tucker | 2012-06-18 | 2 | -10/+44 |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several aspects to this commit, that don't well fit into broken down commits, so they are detailed here: * When a user uses response.headers['Cache-Control'] = some_value, then the documented convention in ConditionalGet is not adhered to, in this case, response.cache_control is ignored due to `return if self[CACHE_CONTROL].present?` * When a middleware sets cache-control headers that would clobber, they're converted to symbols directly, without underscores. This would lead to bugs. * Items that would live in :extras if set through expires_in, are placed directly in the @cache_control hash, and not respected in many cases (somewhat adhering to the aforementioned documentation). * Although quite useless, any directive named 'extras' would be ignored. The general convention applied is that expires_* take precedence, but no longer overwrite everything and expires_* are ALWAYS applied, even if the header is set. I am still unhappy about the contents of this commit, and the code in general. Ideally it should be refactored to no longer use :extras. I'd likely recommend expanding @cache_control into a class, and giving it the power to handle the merge in a more efficient fashion. Such a commit would be a larger change that could have additional semantic changes for other libraries unless they utilize expires_in in very standard ways. | ||||
* | Bump tzinfo gem. | kennyj | 2012-06-17 | 1 | -1/+1 |
| | |||||
* | Merge pull request #6752 from steveklabnik/fix_5680 | Rafael Mendonça França | 2012-06-16 | 3 | -4/+21 |
|\ | | | | | Respect absolute paths in compute_source_path. | ||||
| * | Respect absolute paths in compute_source_path. | Steve Klabnik | 2012-06-16 | 3 | -4/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using compute_source_path to determine the full path of an asset, if our source begins with '/', we don't want to include the directory. Examples are illustrative: > compute_source_path("foo", "stylesheets", "css") => "/Users/steve/src/my_app/public/stylesheets/foo.css" > compute_source_path("/foo", "stylesheets", "css") => "/Users/steve/src/my_app/public/foo.css" Before this patch, the second example would return the same as the first. Fixes #5680. | ||||
* | | TestCase does not need to be loaded when loading the framework | Aaron Patterson | 2012-06-15 | 1 | -1/+3 |
| | | |||||
* | | Support unicode character route in config/routes.rb. | kennyj | 2012-06-16 | 5 | -3/+25 |
|/ | |||||
* | 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 |
| | |||||
* | adding a test for #6459 | Aaron Patterson | 2012-06-14 | 1 | -0/+10 |
| | |||||
* | Revert "AV::TestCase does not need to be loaded when eagerly loading the" | Aaron Patterson | 2012-06-14 | 1 | -2/+1 |
| | | | | This reverts commit f5e7cb84cd377feb1b60c5356ce02123e9c94380. | ||||
* | we raise a subclass of LoadError, so rescue that | Aaron Patterson | 2012-06-14 | 1 | -1/+6 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-06-14 | 2 | -8/+26 |
|\ | |||||
| * | moar copy edits [ci skip] | Vijay Dev | 2012-06-14 | 1 | -2/+1 |
| | | |||||
| * | copy editing [ci skip] | Vijay Dev | 2012-06-14 | 1 | -4/+7 |
| | | |||||
| * | fixed http token authentication formatting | Jakub Kuźma | 2012-06-12 | 1 | -8/+13 |
| | | |||||
| * | on CSRF whitelisting the argument for :if must be a symbol | Daniel Lopes | 2012-06-07 | 1 | -1/+1 |
| | | |||||
| * | fix typos on the CSRF whitelisting doc | Daniel Lopes | 2012-06-07 | 1 | -3/+3 |
| | | |||||
| * | Document the CSRF whitelisting on get requests | Daniel Lopes | 2012-06-07 | 1 | -5/+16 |
| | | |||||
* | | AV::TestCase does not need to be loaded when eagerly loading the | Aaron Patterson | 2012-06-14 | 1 | -1/+2 |
| | | | | | | | | framework | ||||
* | | i suck, fixing error message | Aaron Patterson | 2012-06-14 | 1 | -1/+1 |
| | | |||||
* | | Wrap up missing helper exceptions | Aaron Patterson | 2012-06-14 | 1 | -2/+10 |
| | | | | | | | | | | | | | | The `path` method on missing helper errors is inconsistent with the implementation on LoadError in Ruby 2.0. Wrap up the missing helper exceptions so that the inconsistent behavior is mirrored in Ruby 2.0 (until we can figure out *why* it's inconsistent). | ||||
* | | using hax to fix tests on Ruby 2.0 | Aaron Patterson | 2012-06-13 | 1 | -1/+6 |
| | | |||||
* | | Fix build | Santiago Pastorino | 2012-06-13 | 1 | -2/+2 |
| | | |||||
* | | Merge pull request #6721 from homakov/patch-2 | Santiago Pastorino | 2012-06-13 | 1 | -3/+0 |
|\ \ | | | | | | | These lines don't help to mitigate CVE. They only turn [nil] into nil, w... | ||||
| * | | These lines don't help to mitigate CVE. They only turn [nil] into nil, w/o ↵ | Egor Homakov | 2012-06-13 | 1 | -3/+0 |
| | | | | | | | | | | | | | | | | | | them [nil] turns into [] and that is quite innocent. generated SQL - `IN (NULL)` compact! did all the job. | ||||
* | | | ActionController::Caching depends on RackDelegation and ↵ | Santiago Pastorino | 2012-06-13 | 2 | -0/+35 |
|/ / | | | | | | | AbstractController::Callbacks | ||||
* | | Merge branch 'master-sec' | Aaron Patterson | 2012-06-12 | 2 | -2/+8 |
|\ \ | | | | | | | | | | | | | * master-sec: Array parameters should not contain nil values. | ||||
| * | | Array parameters should not contain nil values. | Aaron Patterson | 2012-06-12 | 2 | -2/+8 |
| | | | |||||
* | | | 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 | 2 | -21/+2 |
|/ / | | | | | | | | | This middleware is only for Public Exceptions. This follows bd8c0b8a | ||||
* | | Return proper format on exceptions | Santiago Pastorino | 2012-06-11 | 3 | -14/+81 |
| | | |||||
* | | both string and sumbol will be interpolated as string no need to convert to_s | ganesh | 2012-06-11 | 2 | -8/+8 |
| | | |||||
* | | Symbol responds_to :upcase & :downcase in Ruby >= 1.9 | Akira Matsuda | 2012-06-06 | 2 | -4/+4 |
| | | |||||
* | | stop `to_s`ing method names | Akira Matsuda | 2012-06-06 | 1 | -16/+16 |
| | | | | | | | | Module#methods are Symbols in Ruby >= 1.9 | ||||
* | | fix meaningless test case | Akira Matsuda | 2012-06-06 | 1 | -1/+1 |
| | | | | | | | | | | Module#instance_methods returns an Array of Symbols in Ruby >= 1.9 So this was not actually testing anything | ||||
* | | One-liner code for logger in ActionView::Helpers::ControllerHelper | Dmitry Vorotilin | 2012-06-05 | 1 | -5/+1 |
| | | |||||
* | | Merge pull request #6631 from yuki24/use_block_in_button_helper | José Valim | 2012-06-05 | 2 | -3/+18 |
|\ \ | | | | | | | Accept a block in FormHelper#button | ||||
| * | | accept a block in button helper. | Yuki Nishijima | 2012-06-05 | 2 | -3/+18 |
| |/ | |||||
* / | Metal controller doesn't have logger method, check it and then delegate | Dmitry Vorotilin | 2012-06-05 | 1 | -2/+8 |
|/ | |||||
* | Allow to use mounted helpers in ActionView::TestCase | Piotr Sarnacki | 2012-06-01 | 4 | -1/+24 |
| | | | | | Similarly to 6525002, this allows to use routes helpers for mounted helpers, but this time in ActionView::TestCase | ||||
* | Merge pull request #6588 from nbibler/polymorphic_to_model | José Valim | 2012-06-01 | 2 | -2/+34 |
| | | | | Correct the use of to_model in polymorphic routing | ||||
* | Sync CHANGLOG with the 3-2-stable branch | Rafael Mendonça França | 2012-06-01 | 1 | -0/+32 |
| | |||||
* | Include routes.mounted_helpers into integration tests | Piotr Sarnacki | 2012-06-01 | 4 | -3/+27 |
| | | | | | | | | | | | | | | | In integration tests, you might want to use helpers from engines that you mounted in your application. It's not hard to add it by yourself, but it's unneeded boilerplate. mounted_helpers are now included by default. That means that given engine mounted like: mount Foo::Engine => "/foo", :as => "foo" you will be able to use paths from this engine in tests this way: foo.root_path #=> "/foo" (closes #6573) | ||||
* | Merge branch 'master-sec' | Aaron Patterson | 2012-05-31 | 2 | -1/+28 |
|\ | | | | | | | | | | | * master-sec: Strip [nil] from parameters hash. Thanks to Ben Murphy for reporting this! predicate builder should not recurse for determining where columns. Thanks to Ben Murphy for reporting this | ||||
| * | Strip [nil] from parameters hash. | Aaron Patterson | 2012-05-30 | 2 | -1/+28 |
| | | | | | | | | | | | | Thanks to Ben Murphy for reporting this! CVE-2012-2660 | ||||
| * | Fix the build | Santiago Pastorino | 2012-05-22 | 1 | -1/+0 |
| | | |||||
| * | require active_support/lazy_load_hooks where is needed | Santiago Pastorino | 2012-05-22 | 1 | -0/+1 |
| | |