Replace :formats => ["*/*"] with the default formats set

This commit is contained in:
Yehuda Katz + Carl Lerche
2009-09-03 12:45:48 -07:00
parent e3744166ec
commit 119793a4c1

View File

@@ -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