mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Fix Rails edge: evaluate_assigns is now _evaluate_assigns_and_ivars.
This commit is contained in:
parent
c2312ecb01
commit
8b59528693
1 changed files with 6 additions and 1 deletions
|
@ -35,7 +35,12 @@ class TemplateTest < Test::Unit::TestCase
|
|||
@base.finder.append_view_path(TEMPLATE_PATH)
|
||||
end
|
||||
|
||||
@base.send(:evaluate_assigns)
|
||||
if @base.private_methods.include?('evaluate_assigns')
|
||||
@base.send(:evaluate_assigns)
|
||||
else
|
||||
# Rails 2.2
|
||||
@base.send(:_evaluate_assigns_and_ivars)
|
||||
end
|
||||
|
||||
# This is used by form_for.
|
||||
# It's usually provided by ActionController::Base.
|
||||
|
|
Loading…
Add table
Reference in a new issue