Sha256: 1b3f229f408cd84d2fc2f910d59b178a88aab669492705f64e65edc65cf12e92
Contents?: true
Size: 469 Bytes
Versions: 5
Compression:
Stored size: 469 Bytes
Contents
# Base class for application policies class ApplicationPolicy < ActionPolicy::Base # Configure additional authorization contexts here # (`user` is added by default). # # authorize :account, optional: true # # Read more about authoriztion context: https://actionpolicy.evilmartians.io/#/authorization_context private # Define shared methods useful for most policies. # For example: # # def owner? # record.user_id == user.id # end end
Version data entries
5 entries across 5 versions & 1 rubygems