Skip to content
Browse files

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

  • Loading branch information...
1 parent e374416 commit 119793a4c10d6badfc168944d4909769eb142cd0 Yehuda Katz + Carl Lerche committed Sep 3, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_view/template/resolver.rb
View
2 actionpack/lib/action_view/template/resolver.rb
@@ -53,6 +53,8 @@ def find_templates(name, details, prefix, partial)
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

0 comments on commit 119793a

Please sign in to comment.
Something went wrong with that request. Please try again.