1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00
Commit graph

7 commits

Author SHA1 Message Date
Radan Skoric
d2ff617cd3 Add pundit_policy_authorized? and pundit_policy_scoped? methods
In some cases we might need to simply check if `authorize` or
`policy_scope` were called, without immediately raising and exception.
In other cases we might be happy if either was called and only want
to raise if neither was called.

All those edge cases are most easily served by exposing lower level
function which just perform the checks and return `true` or `false`.

The `verify_*` methods can then build on top of them to offer a
convenient path for the most common use cases.
2015-04-01 14:00:13 +02:00
Jonas Nicklas
6033c475c2 Update changelog 2014-08-22 13:26:44 +02:00
Jonas Nicklas
753bb0a2b6 Revert namespaces 2014-08-22 11:19:36 +02:00
Thomas Klemm
7ebc33e112 Update CHANGELOG 2014-07-13 11:07:01 +02:00
Thomas Klemm
463699f174 Update CHANGELOG 2014-04-28 23:00:48 +02:00
Thomas Klemm
c028f722e6 Update changelog 2014-04-07 00:22:38 +02:00
Thomas Klemm
94787da5e3 Add CHANGELOG 2014-02-09 09:43:33 +01:00