lib/yao/resources/restfully_accessible.rb in yao-0.2.7 vs lib/yao/resources/restfully_accessible.rb in yao-0.2.8
- old
+ new
@@ -55,21 +55,21 @@
end
def as_member(&blk)
if @admin
@admin = false
- result = yield(blk)
+ result = yield
@admin = true
result
else
- yield blk
+ yield
end
end
def with_resources_path(path, &blk)
original = @resources_path
@resources_path = path
- result = yield(blk)
+ result = yield
@resources_path = original
result
end