locomotivecms/engine

View on GitHub
app/models/locomotive/concerns/content_entry/authentication.rb

Summary

Maintainability
A
0 mins
Test Coverage
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