aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-09-03 12:45:48 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-09-03 12:52:53 -0700
commit119793a4c10d6badfc168944d4909769eb142cd0 (patch)
treee0f60246dd94e38a7611d0d728ab6e8f85a05d4f /actionpack/lib/action_view
parente3744166ec0b98b76175ee70bda8051fb05690e7 (diff)
downloadrails-119793a4c10d6badfc168944d4909769eb142cd0.tar.gz
rails-119793a4c10d6badfc168944d4909769eb142cd0.tar.bz2
rails-119793a4c10d6badfc168944d4909769eb142cd0.zip
Replace :formats => ["*/*"] with the default formats set
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/template/resolver.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template/resolver.rb b/actionpack/lib/action_view/template/resolver.rb
index 410562efcc..f5591ead09 100644
--- a/actionpack/lib/action_view/template/resolver.rb
+++ b/actionpack/lib/action_view/template/resolver.rb
@@ -53,6 +53,8 @@ module ActionView
def normalize_details(details)
details = details.dup
+ # TODO: Refactor this concern out of the resolver
+ details.delete(:formats) if details[:formats] == [:"*/*"]
registered_details.each do |k, v|
details[k] = v.call(details[k])
end