Sha256: 3e56d4fe09cd31ec27a9974bfec2446fb1c00d134778d3b99be78134b1eb5406

Contents?: true

Size: 247 Bytes

Versions: 10

Compression:

Stored size: 247 Bytes

Contents

module Locomotive
  module Concerns
    module ContentEntry
      module Authentication

        def with_authentication?
          self.content_type.entries_custom_fields.where(type: 'password').count > 0
        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/models/locomotive/concerns/content_entry/authentication.rb
locomotivecms-4.2.0.alpha1 app/models/locomotive/concerns/content_entry/authentication.rb
locomotivecms-4.1.1 app/models/locomotive/concerns/content_entry/authentication.rb
locomotivecms-4.1.0 app/models/locomotive/concerns/content_entry/authentication.rb
locomotivecms-4.1.0.rc1 app/models/locomotive/concerns/content_entry/authentication.rb
locomotivecms-4.0.3 app/models/locomotive/concerns/content_entry/authentication.rb
locomotivecms-4.0.2 app/models/locomotive/concerns/content_entry/authentication.rb
locomotivecms-4.0.1 app/models/locomotive/concerns/content_entry/authentication.rb
locomotivecms-4.0.0 app/models/locomotive/concerns/content_entry/authentication.rb
locomotivecms-4.0.0.rc0 app/models/locomotive/concerns/content_entry/authentication.rb