Class: DebtLettersPolicy
- Inherits:
-
Struct
- Object
- Struct
- DebtLettersPolicy
- Defined in:
- app/policies/debt_letters_policy.rb
Instance Attribute Summary collapse
-
#debt_letters ⇒ Object
Returns the value of attribute debt_letters.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#debt_letters ⇒ Object
Returns the value of attribute debt_letters
3 4 5 |
# File 'app/policies/debt_letters_policy.rb', line 3 def debt_letters @debt_letters end |
#user ⇒ Object
Returns the value of attribute user
3 4 5 |
# File 'app/policies/debt_letters_policy.rb', line 3 def user @user end |
Instance Method Details
#access? ⇒ Boolean
4 5 6 |
# File 'app/policies/debt_letters_policy.rb', line 4 def access? Flipper.enabled?(:debt_letters_show_letters_vbms, user) end |