Module: Para::Acl::ActiveRecordExtension::ClassMethods
- Defined in:
- lib/para/acl/ext/active_record_extension.rb
Instance Method Summary collapse
Instance Method Details
#has_admin_role ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/para/acl/ext/active_record_extension.rb', line 7 def has_admin_role has_one :user_role, as: :user, class_name: 'Para::Acl::UserRole', dependent: :destroy has_one :role, through: :user_role end |