lib/authority/user_abilities.rb in authority-2.2.0 vs lib/authority/user_abilities.rb in authority-2.3.0
- old
+ new
@@ -18,7 +18,11 @@
end
end
RUBY
end
+ def can?(action)
+ ApplicationAuthorizer.send("can_#{action}?", self)
+ end
+
end
end