- 07 2月, 2016 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 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
-
- 26 9月, 2015 1 次提交
-
-
由 Gaurav Sharma 提交于
-
- 22 9月, 2015 2 次提交
-
-
由 Aaron Patterson 提交于
This class gives us the `all?` predicate method that returns true without hitting method missing
-
由 Aaron Patterson 提交于
We don't want to manage a list of constants on `Mime::`. Managing constants is strange because it will break method caches, not to mention looking up by a constant could cause troubles. For example suppose there is a top level constant `HTML`, but nobody registers the HTML mime type and someone accesses `Mime::HTML`. Instead of getting an error about how the mime type doesn't exist, instead you'll get the top level constant. So, instead of directly accessing the constants, change this: Mime::HTML To this: Mime::Type[:HTML]
-
- 28 5月, 2015 1 次提交
-
-
由 Eduardo Bautista 提交于
-
- 06 12月, 2013 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 30 1月, 2012 1 次提交
-
- 28 6月, 2011 2 次提交
-
-
由 Arun Agrawal 提交于
-
由 Esad Hajdarevic 提交于
-
- 30 7月, 2009 1 次提交
-
-
由 José Valim 提交于
Signed-off-by: NYehuda Katz <wycats@gmail.com>
-
- 21 5月, 2009 1 次提交
-
-
- 28 1月, 2009 2 次提交
-
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
- 03 7月, 2008 1 次提交
-
-
由 Mike Subelsky 提交于
[#536 state:resolved]
-
- 06 5月, 2008 1 次提交
-
-
由 rick 提交于
-
- 16 5月, 2007 1 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 27 3月, 2007 1 次提交
-
-
由 Rick Olson 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 18 2月, 2007 1 次提交
-
-
由 David Heinemeier Hansson 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 13 1月, 2007 1 次提交
-
-
由 Rick Olson 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 07 12月, 2006 2 次提交
-
-
由 Jeremy Kemper 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5695 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
由 Jeremy Kemper 提交于
respond_to recognizes JSON. render :json => @person.to_json automatically sets the content type and takes a :callback option to specify a client-side function to call using the rendered JSON as an argument. References #4185. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-
- 03 12月, 2006 1 次提交
-
-
由 David Heinemeier Hansson 提交于
Added the option for extension aliases to mime type registration [DHH] Refactored default mime types to use the extension framework instead of just declaring themselves verbosely git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-