mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
![]() Enables `policy(:dashboard) # => DashboardPolicy`. Policies without a matching model can come in handy when a controller isn't modeled alongside a resource, e.g. a `DashboardsController`. The policy lookup by symbol also helps with strong parameters, since I prefer `policy(:post)` or `policy(@post || :post)` over `policy(@post || Post)`. |
||
---|---|---|
.. | ||
pundit_spec.rb | ||
spec_helper.rb |