lib/stasi/authorization/watch.rb in stasi-0.0.1.alpha vs lib/stasi/authorization/watch.rb in stasi-0.1.0
- old
+ new
@@ -1,10 +1,12 @@
module Robotnik
module Authorization
module Watch
def can? *args
- Robotnik::Authorization::Law.law.can? *(args.unshift(self))
+ args[2] ||= {}
+ args[2][:agent] = self
+ Robotnik::Authorization::Law.law.can? *args
end
end
end
end