Class: Setting::SettingPermission
- Inherits:
-
Struct
- Object
- Struct
- Setting::SettingPermission
- Defined in:
- app/models/setting.rb
Overview
CanCanCan integration
Create a simple struct to represent a setting for authorization
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
Delegated Instance Attributes collapse
-
#model_name ⇒ Object
Alias for Setting#model_name.
Class Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
203 204 205 |
# File 'app/models/setting.rb', line 203 def key @key end |
Class Method Details
.model_name ⇒ ActiveModel::Name
207 208 209 |
# File 'app/models/setting.rb', line 207 def self.model_name Setting.model_name end |
Instance Method Details
#model_name ⇒ Object
Alias for Setting#model_name
204 |
# File 'app/models/setting.rb', line 204 delegate :model_name, to: :Setting |