diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-03 12:45:48 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-03 12:52:53 -0700 |
commit | 119793a4c10d6badfc168944d4909769eb142cd0 (patch) | |
tree | e0f60246dd94e38a7611d0d728ab6e8f85a05d4f | |
parent | e3744166ec0b98b76175ee70bda8051fb05690e7 (diff) | |
download | rails-119793a4c10d6badfc168944d4909769eb142cd0.tar.gz rails-119793a4c10d6badfc168944d4909769eb142cd0.tar.bz2 rails-119793a4c10d6badfc168944d4909769eb142cd0.zip |
Replace :formats => ["*/*"] with the default formats set
-rw-r--r-- | actionpack/lib/action_view/template/resolver.rb | 2 |
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 |