aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/resolver.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-12-01 11:22:48 +0100
committerJosé Valim <jose.valim@gmail.com>2010-12-01 11:22:48 +0100
commitba63c0a9b58691adeca645977828ee918107208d (patch)
tree3bfcfa25dbf527601921e0b51cf4b4006cd01265 /actionpack/lib/action_view/template/resolver.rb
parent831a2342c69f1d602aca9e894bffa4f6dbf614ed (diff)
downloadrails-ba63c0a9b58691adeca645977828ee918107208d.tar.gz
rails-ba63c0a9b58691adeca645977828ee918107208d.tar.bz2
rails-ba63c0a9b58691adeca645977828ee918107208d.zip
Deprecate handler_class_for_extension as template handlers can be any Ruby object, not necessarily a class.
Diffstat (limited to 'actionpack/lib/action_view/template/resolver.rb')
-rw-r--r--actionpack/lib/action_view/template/resolver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template/resolver.rb b/actionpack/lib/action_view/template/resolver.rb
index 7707dbcf98..9f15661669 100644
--- a/actionpack/lib/action_view/template/resolver.rb
+++ b/actionpack/lib/action_view/template/resolver.rb
@@ -129,7 +129,7 @@ module ActionView
def extract_handler_and_format(path, default_formats)
pieces = File.basename(path).split(".")
pieces.shift
- handler = Template.handler_class_for_extension(pieces.pop)
+ handler = Template.handler_for_extension(pieces.pop)
format = pieces.last && Mime[pieces.last]
[handler, format]
end