Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | generic pass before merging docrails | Xavier Noria | 2013-01-26 | 1 | -5/+7 |
| | |||||
* | Add documentation to ActionDispatch::Response | Matthew Stopa | 2013-01-20 | 1 | -0/+7 |
| | |||||
* | Fix typo introduced in 0004ca3a | Carlos Antonio da Silva | 2013-01-16 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | More documentation for ActionDispatch::Response | Matthew Stopa | 2013-01-16 | 1 | -1/+3 |
| | | | | [ci skip] | ||||
* | Document ActionDispatch::Response#body method | Matthew Stopa | 2013-01-16 | 1 | -0/+1 |
| | |||||
* | Namespace HashWithIndifferentAccess | Akira Matsuda | 2013-01-07 | 2 | -2/+2 |
| | |||||
* | Needless requires | Akira Matsuda | 2013-01-06 | 1 | -4/+0 |
| | |||||
* | Add documentation to ActionDispatch::Http::UploadedFile#headers | Rafael Mendonça França | 2013-01-03 | 1 | -0/+1 |
| | | | | [ci skip] | ||||
* | Remove a useless TODO comment | Robin Dupret | 2013-01-03 | 1 | -1/+0 |
| | |||||
* | do not append a second slash when using | Yves Senn | 2013-01-02 | 1 | -1/+5 |
| | |||||
* | charset should not be appended for `head` responses | Yves Senn | 2012-12-31 | 1 | -2/+6 |
| | | | | | | | 1) Failure: test_head_created_with_image_png_content_type(RenderTest) [test/controller/render_test.rb:1238]: Expected: "image/png" Actual: "image/png; charset=utf-8" | ||||
* | return Mime::NullType if format is unknown | Angelo Capilleri | 2012-12-22 | 1 | -1/+12 |
| | | | | | | | | | | If a request has an unknown format, the methods html?, xml?, json? ...etc not raise an Exception. This patch add a class Mime::NullType, that is returned when request.format is unknown and it responds false to the methods that ends with '?' and true to 'nil?'. It refers to #7837, this issue is considered a improvement not a bug. | ||||
* | remove a cache we do not need | Aaron Patterson | 2012-12-14 | 1 | -5/+1 |
| | |||||
* | Merge pull request #8510 from thedarkone/thread_safety_improvements | Aaron Patterson | 2012-12-14 | 1 | -7/+3 |
|\ | | | | | Thread safety improvements | ||||
| * | Replace some global Hash usages with the new thread safe cache. | thedarkone | 2012-12-14 | 1 | -7/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes: * Add thread_safe gem. * Use thread safe cache for digestor caching. * Replace manual synchronization with ThreadSafe::Cache in Relation::Delegation. * Replace @attribute_method_matchers_cache Hash with ThreadSafe::Cache. * Use TS::Cache to avoid the synchronisation overhead on listener retrieval. * Replace synchronisation with TS::Cache usage. * Use a preallocated array for performance/memory reasons. * Update the controllers cache to the new AS::Dependencies::ClassCache API. The original @controllers cache no longer makes much sense after @tenderlove's changes in 7b6bfe84f3 and f345e2380c. * Use TS::Cache in the connection pool to avoid locking overhead. * Use TS::Cache in ConnectionHandler. | ||||
* | | Fix rewinding in ActionDispatch::Request#raw_post | Matt Venables | 2012-12-11 | 1 | -2/+3 |
|/ | | | | | | | | | If env['RAW_POST_DATA'] is nil, #raw_post will attempt to set it to the result of #body (which will return env['rack.input'] if env['RAW_POST_DATA'] is nil). #raw_post will then attempt to rewind the result of another call to #body. Since env['RAW_POST_DATA'] has already been set, the result of #body is not env['rack.input'] anymore. This causes env['rack.input'] to never be rewound. | ||||
* | Merge pull request #8476 from sheerun/fix/multipart-get | Rafael Mendonça França | 2012-12-10 | 1 | -1/+5 |
|\ | | | | | Prevent raising EOFError on multipart GET request. | ||||
| * | Prevent raising EOFError on multipart GET request. | Adam Stankiewicz | 2012-12-10 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | | | | | Such request can happen on Internet Explorer. When we redirect after multipart form submission, the request type is changed to GET, but Content-Type is preserved as multipart. GET request cannot have multipart body and that caused Rails to fail. It's similar fix to Rack's one: https://github.com/chneukirchen/rack/blob/8025a4ae9477d1e6231344c2b7d795aa9b3717b6/lib/rack/request.rb#L224 | ||||
* | | use `_action` instead of `_filter` callbacks | Francesco Rodriguez | 2012-12-07 | 1 | -2/+2 |
|/ | |||||
* | Adding filter capability to ActionController logs | Fabrizio Regini | 2012-12-05 | 2 | -0/+38 |
| | |||||
* | 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 |
| |