Module: Locomotive::Concerns::ContentEntry::Authentication
- Included in:
- Locomotive::ContentEntry
- Defined in:
- app/models/locomotive/concerns/content_entry/authentication.rb
Instance Method Summary collapse
Instance Method Details
#with_authentication? ⇒ Boolean
6 7 8 |
# File 'app/models/locomotive/concerns/content_entry/authentication.rb', line 6 def with_authentication? self.content_type.entries_custom_fields.where(type: 'password').count > 0 end |