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:
parent
fa96168ea6
commit
9a96ba8af7
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue