RedHatInsights / insights-api-common-rails

Header, Encryption, RBAC, Serialization, Pagination and other common behavior for Insights microservices built with Rails
Apache License 2.0
3 stars 25 forks source link

Make sure Pundit exception's query type is String #205

Closed hsong-rh closed 4 years ago

hsong-rh commented 4 years ago

This PR allows authorize to accept symbol as its second parameter, like authorized(Portfolio, :update?), otherwise following delete_suffix will fail and raise other exceptions.