Skip to content

Commit

Permalink
Revert "Update reference to ActionView::Template::Handler since it wa…
Browse files Browse the repository at this point in the history
…s removed from rails"

This reverts commit 41be859.

This and the previous reverted commit broke compatibility with old Rails
versions, and didn't seem to fix anything anyway (stable, for instance, was
working just fine on new Rails versions).

What's more, Rails compatibility changes belong in stable.
  • Loading branch information
nex3 committed Sep 27, 2011
1 parent 941815e commit 1b15d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/haml/template.rb
Expand Up @@ -54,7 +54,7 @@ def precompiled_method_return_value_with_haml_xss
# Patching was necessary for versions <= 2.0.1,
# but we can make it a normal handler for higher versions.
if defined?(ActionView::TemplateHandler) ||
(defined?(ActionView::Template) && defined?(ActionView::Template::Handlers))
(defined?(ActionView::Template) && defined?(ActionView::Template::Handler))
require 'haml/template/plugin'
else
require 'haml/template/patch'
Expand Down

0 comments on commit 1b15d4a

Please sign in to comment.