- 01 9月, 2017 1 次提交
-
-
由 Matthew Draper 提交于
Don't use remove_method or remove_possible_method just before a new definition: at best the purpose is unclear, and at worst it creates a race condition. Instead, prefer redefine_method when practical, and silence_redefinition_of_method otherwise.
-
- 29 7月, 2017 1 次提交
-
-
由 Kir Shatrov 提交于
-
- 02 7月, 2017 1 次提交
-
-
由 Matthew Draper 提交于
This reverts commit 3420a145, reversing changes made to afb66a5a.
-
- 01 7月, 2017 1 次提交
-
-
由 Kir Shatrov 提交于
-
- 30 5月, 2017 1 次提交
-
-
由 David Heinemeier Hansson 提交于
* Allow a default value to be declared for class_attribute * Convert to using class_attribute default rather than explicit setter * Removed instance_accessor option by mistake * False is a valid default value * Documentation
-
- 27 12月, 2016 1 次提交
-
-
由 ota42y 提交于
-
- 01 10月, 2016 1 次提交
-
-
由 Andrew White 提交于
The class-level respond_to was extracted in ee77770d to responders gem [ci skip]
-
- 07 8月, 2016 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
-
- 05 5月, 2016 1 次提交
-
-
由 Joe Rafaniello 提交于
[ci skip]
-
- 09 1月, 2016 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 04 1月, 2016 2 次提交
-
-
由 Benjamin Fleischer 提交于
-
由 Benjamin Fleischer 提交于
To complement actionpack/test/controller/metal/renderers_test.rb
-
- 01 1月, 2016 1 次提交
-
-
由 Benjamin Fleischer 提交于
-
- 07 10月, 2015 1 次提交
-
-
由 Jeremy Daer 提交于
Rails 4.x and earlier didn't support `Mime::Type[:FOO]`, so libraries that support multiple Rails versions would've had to feature-detect whether to use `Mime::Type[:FOO]` or `Mime::FOO`. `Mime[:foo]` has been around for ages to look up registered MIME types by symbol / extension, though, so libraries and plugins can safely switch to that without breaking backward- or forward-compatibility. Note: `Mime::ALL` isn't a real MIME type and isn't registered for lookup by type or extension, so it's not available as `Mime[:all]`. We use it internally as a wildcard for `respond_to` negotiation. If you use this internal constant, continue to reference it with `Mime::ALL`. Ref. efc6dd55
-
- 22 9月, 2015 1 次提交
-
-
由 Aaron Patterson 提交于
We should be asking the mime type method for the mime objects rather than via const lookup
-
- 12 7月, 2015 1 次提交
-
-
由 Julio Lopez 提交于
-
- 06 11月, 2014 1 次提交
-
-
由 Robert Evans 提交于
of respond_to. respond_with was moved into the responders gem and deprecated inside rails, so there is no need to mention it within rails itself.
-
- 04 9月, 2014 1 次提交
-
-
由 Xavier Noria 提交于
* Renames _handle_render_options to _render_to_body_with_renderer, which is more intention-revealing. * The name of the dynamically generated method for a renderer with key :js was "_render_option_js". That name is too weak. :js is an option if you see the render argument as just a generic options hash, but in the context of renderers that's the renderer key, is what identifies the renderer. Now "_render_with_renderer_js" is generated instead, which is crystal clear. * The name of the dynamically generated method for the renderer was constructed using string literals in a few places. That is now encapsulated in a method. * Since we were on it, also removed a couple of redundant selfs.
-
- 10 7月, 2014 1 次提交
-
-
由 Greg Campbell 提交于
Adds a comment before JSONP callbacks. See http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/ for more details on the exploit in question.
-
- 03 7月, 2014 1 次提交
-
-
由 Lucas Mazza 提交于
The controller can set the response format as 'JSON' before the renderer code be evaluated, so we must replace it when necessary. Fixes #15081
-
- 26 5月, 2014 1 次提交
-
-
由 Guillermo Iguaran 提交于
-
- 20 5月, 2014 1 次提交
-
-
由 Zuhao Wan 提交于
-
- 21 4月, 2014 1 次提交
-
-
由 Stevie Graham 提交于
ActionController::Renderers::RENDERERS is an instance of Set. Docs incorrectly state that it's a Hash.
-
- 26 12月, 2013 1 次提交
-
-
由 Chun-wei Kuo 提交于
* Add "<tt>" or "+" to improve font of some code and filenames in API documentation * Does not contain wording changes
-
- 06 9月, 2013 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 18 8月, 2013 1 次提交
-
-
由 Ben Woosley 提交于
Currently if a user calls #respond_with(csvable), but has not csv renderer available, Responder will just run through the default render behavior twice, raising ActionView::MissingTemplate both times. This changes ActionController::Metal::Responder#api_behavior to check in advance whether there is a renderer available, and raise ActionController::MissingRenderer if not.
-
- 28 10月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 03 8月, 2012 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
- 15 5月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 29 4月, 2012 1 次提交
-
-
由 José Valim 提交于
-
- 16 10月, 2011 1 次提交
-
-
由 Jose and Yehuda 提交于
-
- 28 7月, 2011 1 次提交
-
-
由 Olli Jokinen 提交于
-
- 18 4月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 13 4月, 2011 1 次提交
-
-
由 Xavier Noria 提交于
-
- 10 2月, 2011 1 次提交
-
-
由 Gabriel Horner 提交于
-
- 25 11月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
If a user wants json output then try best to render json output. In such cases prefer kind_of(String) over respond_to?(to_str) [#5841 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 23 11月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-