mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Fixed error handling (again).
git-svn-id: svn://hamptoncatlin.com/haml/trunk@9 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
1cacde8b4f
commit
c4ef30d084
1 changed files with 2 additions and 7 deletions
|
@ -182,15 +182,10 @@ module HAML
|
|||
|
||||
def method_missing(action, *args, &block)
|
||||
if action.to_s.first == "@"
|
||||
result = @__base.instance_eval(action)
|
||||
@__base.instance_eval(action)
|
||||
else
|
||||
begin
|
||||
result = @__base.send(action, *args, &block)
|
||||
rescue
|
||||
result = @__locals[action.to_s] || @__locals[action.to_sym]
|
||||
end
|
||||
@__locals[action.to_s] || @__locals[action.to_sym] || @__base.send(action, *args, &block)
|
||||
end
|
||||
result
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue