Class: Authz::ScopingRule
- Inherits:
-
Authz.selfself::ApplicationRecord
- Object
- Authz.selfself::ApplicationRecord
- Authz::ScopingRule
- Defined in:
- app/models/authz/scoping_rule.rb
Overview
An instance represents that a role has keyword for a particular scopable. For example ‘Sports Publisher’ had keyword ‘sports’ for ‘ScopableByDepartment’
Instance Method Summary collapse
-
#to_s ⇒ String
String representation of instance.
Instance Method Details
#to_s ⇒ String
Returns string representation of instance.
26 27 28 |
# File 'app/models/authz/scoping_rule.rb', line 26 def to_s "#{scopable}: #{keyword}##{id}" end |