Class: DemographicsPolicy
- Inherits:
-
Struct
- Object
- Struct
- DemographicsPolicy
- Defined in:
- app/policies/demographics_policy.rb
Instance Attribute Summary collapse
-
#gender_identity ⇒ Object
Returns the value of attribute gender_identity.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#gender_identity ⇒ Object
Returns the value of attribute gender_identity
3 4 5 |
# File 'app/policies/demographics_policy.rb', line 3 def gender_identity @gender_identity end |
#user ⇒ Object
Returns the value of attribute user
3 4 5 |
# File 'app/policies/demographics_policy.rb', line 3 def user @user end |
Instance Method Details
#access? ⇒ Boolean
4 5 6 |
# File 'app/policies/demographics_policy.rb', line 4 def access? user&.idme_uuid.present? || user&.logingov_uuid.present? end |
#access_update? ⇒ Boolean
8 9 10 |
# File 'app/policies/demographics_policy.rb', line 8 def access_update? user&.idme_uuid.present? || user&.logingov_uuid.present? end |