Sha256: db7c165fabbbf0d3db2c43503a9990be8db2962a5926b0c9b8b5076109fe8010
Contents?: true
Size: 316 Bytes
Versions: 3
Compression:
Stored size: 316 Bytes
Contents
# The Permission class stores permissions managed by CanCan and Cancannible class Permission < ActiveRecord::Base belongs_to :permissible, polymorphic: true belongs_to :resource, polymorphic: true validates_uniqueness_of :ability, scope: [:resource_id, :resource_type, :permissible_id, :permissible_type] end
Version data entries
3 entries across 3 versions & 1 rubygems