1
0
Fork 0
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:
hcatlin 2006-07-21 18:05:25 +00:00
parent 1cacde8b4f
commit c4ef30d084

View file

@ -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