Sha256: bb14a049d395dbc34c79d02b1e7f2fb13bf773534127f5e0aaf3af182ff820da
Contents?: true
Size: 210 Bytes
Versions: 2
Compression:
Stored size: 210 Bytes
Contents
module Rbac class Role < ActiveRecord::Base belongs_to :subject, :polymorphic => true belongs_to :context, :polymorphic => true def has_context? context_type && context_id end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
adva_rbac-0.0.1 | lib/rbac/role.rb |
adva-0.0.1 | adva_rbac/lib/rbac/role.rb |