Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Correct the use of params options when given to url_for | Carlos Antonio da Silva | 2012-11-19 | 1 | -1/+1 |
| | | | | Merge url for tests and add changelog entry for #8233. | ||||
* | Fix issue with params in url_for | tumayun | 2012-11-19 | 1 | -1/+1 |
| | | | | | | With a "params" argument, the following error is raised: undefined method `reject!` for "":String | ||||
* | Refactor url methods a bit | Carlos Antonio da Silva | 2012-11-16 | 1 | -9/+9 |
| | | | | | | Use if..else conditions instead of return guards. Use _ for not used arguments when iterating. Set the path variable directly instead of using an empty string and <<. | ||||
* | implement to_a and to_ary so that the Array() call in template.rb will | Aaron Patterson | 2012-11-09 | 1 | -9/+14 |
| | | | | | | | | | | | | | | | | not raise so many exceptions: https://github.com/rails/rails/blob/master/actionpack/lib/action_view/template.rb#L126 irb(main):001:0> class Foo; def method_missing(*args); super; end end => nil irb(main):002:0> $DEBUG = true => true irb(main):003:0> Array(Foo.new) Exception `NoMethodError' at (irb):1 - undefined method `to_ary' for #<Foo:0x007f854390e488> Exception `NoMethodError' at (irb):1 - undefined method `to_a' for #<Foo:0x007f854390e488> => [#<Foo:0x007f854390e488>] irb(main):004:0> | ||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-11-03 | 1 | -2/+2 |
|\ | | | | | | | | | | | | | 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 | 1 | -2/+2 |
| | | |||||
* | | Revert "if format is unknown NullMimeTypeObject is returned" | Guillermo Iguaran | 2012-10-31 | 1 | -12/+1 |
| | | | | | | | | This reverts commit a8560fa361958b33d76e4468eb5c07d82a20196e. | ||||
* | | if format is unknown NullMimeTypeObject is returned | Angelo capilleri | 2012-10-31 | 1 | -1/+12 |
| | | | | | | | | | | | | | | | | | | | | If a unknown format is passed in a request, the methods html?, xml?, json? ...etc Nil Exception. This patch add a class NullMimeTypeObject, that is returned when request.format is unknown and it responds false to the methods that ends with '?'. It refers to #7837, not fixes because it's not considered a improvement not a bug. | ||||
* | | Make caller attribute in deprecation methods optional | Alexey Gaziev | 2012-10-30 | 1 | -2/+2 |
| | | |||||
* | | Provide a call stack for deprecation warnings where needed. | Nikita Afanasenko | 2012-10-29 | 1 | -2/+2 |
| | | | | | | | | It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly. | ||||
* | | give access to the original exception raised in case of a parse error | Aaron Patterson | 2012-10-25 | 1 | -2/+2 |
| | | |||||
* | | do not lose backtrace information from the raised exception | Aaron Patterson | 2012-10-25 | 1 | -10/+6 |
|/ | |||||
* | synchronize on param filter cache. | Aaron Patterson | 2012-10-18 | 1 | -2/+7 |
| | | | | Do we actually need this cache? | ||||
* | add another singleton for environment filtering | Aaron Patterson | 2012-10-18 | 1 | -3/+8 |
| | |||||
* | oops, forgot the default parameter | Aaron Patterson | 2012-10-18 | 1 | -1/+1 |
| | |||||
* | keep a singleton filter around that we can use when no filter is set | Aaron Patterson | 2012-10-18 | 1 | -2/+6 |
| | |||||
* | move compiled filters to their own class so that recursive calls don't | Aaron Patterson | 2012-10-18 | 1 | -41/+45 |
| | | | | need to check for the length of @filters | ||||
* | nil isn't a valid filter | Aaron Patterson | 2012-10-18 | 1 | -1/+0 |
| | |||||
* | prevent people from accidentally modifying the filter word | Aaron Patterson | 2012-10-18 | 1 | -1/+1 |
| | |||||
* | simplify filter enabled checking | Aaron Patterson | 2012-10-18 | 1 | -9/+4 |
| | |||||
* | if no filters are supplied, default to an empty list | Aaron Patterson | 2012-10-18 | 1 | -1/+1 |
| | |||||
* | initialize required instance variables for this mixin | Aaron Patterson | 2012-10-18 | 1 | -2/+7 |
| | |||||
* | eagerly populate the http method loookup cache so we don't need locks | Aaron Patterson | 2012-10-18 | 1 | -1/+7 |
| | |||||
* | move cache inside the instance so we do not need locking | Aaron Patterson | 2012-10-18 | 1 | -9/+12 |
| | |||||
* | add test for fetch with a block | Aaron Patterson | 2012-10-18 | 1 | -2/+2 |
| | |||||
* | prefer composition over inheritence | Aaron Patterson | 2012-10-18 | 1 | -11/+15 |
| | |||||
* | depreacte unused Mime::Type#verify_request? and ↵ | grosser | 2012-09-24 | 1 | -1/+6 |
| | | | | Mime::Type.browser_generated_types | ||||
* | documents ActionDispatch::Http::UploadedFile | Xavier Noria | 2012-09-22 | 1 | -6/+55 |
| | |||||
* | Accept parameters in methods delegated to tempfile | Sergio Gil Pérez de la Manga | 2012-09-22 | 1 | -6/+2 |
| | |||||
* | Delegate ActionDispatch::Http::UploadedFile#close to tempfile | Sergio Gil Pérez de la Manga | 2012-09-20 | 1 | -1/+1 |
| | |||||
* | Check if etag exists before to do the gsub | Rafael Mendonça França | 2012-09-15 | 1 | -2/+4 |
| | | | | This fix the build http://travis-ci.org/#!/rails/rails/builds/2459981 | ||||
* | fix the build | Steve Klabnik | 2012-09-15 | 1 | -0/+1 |
| | |||||
* | Support for multiple etags in an If-None-Match header | Travis Warlick | 2012-09-15 | 1 | -1/+7 |
| | | | | | | | | This is a rebased version of #2520. Conflicts: actionpack/test/dispatch/request_test.rb | ||||
* | Fixed missing require | Ilya Vorontsov | 2012-09-08 | 1 | -0/+1 |
| | | | | | | | Missing require caused fail of guide generation (in action_dispatch/http/mime_type, line 295, undefined method `ends_with` for "to_ary":String) With this fix guides were normally generated | ||||
* | Refactor `Mime::Type` | Aleksey Magusev | 2012-09-05 | 1 | -84/+93 |
| | | | | | | | | | | | `parse` method performance improvements - ~27-33%: accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, , pronto/1.00.00, sslvpn/1.00.00.00, */*" Benchmark.measure{ 1_000_0.times { Mime::Type.parse(accept) }} old: 1.430000 0.000000 1.430000 ( 1.440977) new: 0.920000 0.000000 0.920000 ( 0.921813) | ||||
* | Properly reset the session on reset_session | Steve Klabnik | 2012-08-31 | 1 | -2/+5 |
| | | | | Fixes #7478 | ||||
* | Add Request#formats=(extensions) that lets you set multiple formats directly ↵ | David Heinemeier Hansson | 2012-08-14 | 1 | -0/+21 |
| | | | | in a prioritized order | ||||
* | push header merge down to a private method so that live responses can have ↵ | Aaron Patterson | 2012-08-13 | 1 | -3/+7 |
| | | | | their own header object | ||||
* | Merge pull request #7302 from homakov/default_headers | Aaron Patterson | 2012-08-09 | 1 | -0/+5 |
|\ | | | | | Introduce default_headers. closes #6311 #6515 | ||||
| * | introduce default_headers config | Egor Homakov | 2012-08-09 | 1 | -0/+5 |
| | | |||||
* | | initialize instance variables | Aaron Patterson | 2012-08-09 | 3 | -0/+22 |
|/ | |||||
* | 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 |
| | |||||
* | Merge pull request #7198 from cfcosta/refactor-cache_control_headers | Rafael Mendonça França | 2012-07-29 | 1 | -11/+19 |
|\ | | | | | Refactor ActionDispatch::Http::Cache::Response#cache_control_headers | ||||
| * | Refactor ActionDispatch::Http::Cache::Response#cache_control_headers. | Cainã Costa | 2012-07-30 | 1 | -11/+19 |
| | | |||||
* | | header hash is duped before being sent up the rack stack | Aaron Patterson | 2012-07-29 | 1 | -12/+16 |
| | | |||||
* | | ActionController::DataStreaming::FileBody doesn't respond to #close. | Rafael Mendonça França | 2012-07-29 | 1 | -1/+1 |
| | | |||||
* | | flushing output should write to the stream rather than mutating the response ↵ | Aaron Patterson | 2012-07-29 | 1 | -8/+12 |
|/ | | | | object | ||||
* | adding a buffered stream to the response object | Aaron Patterson | 2012-07-29 | 1 | -2/+42 |
| | |||||
* | initialize ivars, refactor recycle! to call initialize | Aaron Patterson | 2012-07-29 | 1 | -0/+2 |
| |