mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Replace :formats => ["*/*"] with the default formats set
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user