1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Remove check for ActionView < 3

This commit is contained in:
Norman Clarke 2012-05-30 12:29:07 -03:00
parent fa96168ea6
commit 9a96ba8af7

View file

@ -17,11 +17,6 @@ end
action_view action_pack haml/template rbench].each {|dep| require(dep)}
def view
unless Haml::Util.has?(:instance_method, ActionView::Base, :finder)
return ActionView::Base.new(File.dirname(__FILE__), {})
end
# Rails >=2.1.0
base = ActionView::Base.new
base.finder.append_view_path(File.dirname(__FILE__))
base