Class: Authz::ScopingRule

Inherits:
Authz.selfself::ApplicationRecord
  • Object
show all
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

Instance Method Details

#to_sString

Returns string representation of instance.

Returns:

  • (String)

    string representation of instance



26
27
28
# File 'app/models/authz/scoping_rule.rb', line 26

def to_s
  "#{scopable}: #{keyword}##{id}"
end