Sha256: bff78df575b011b70309ab200b34afe15fba73388b4204055b7bcdbf1ed4ba71

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

module Mongoid # :nodoc:
  module Document # :nodoc:
    module ClassMethods # :nodoc:
      # The mongoid default document returns always false.
      # The documents with custom fields return true.
      #
      # @return [ Boolean ] False
      #
      def with_custom_fields?
        false
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
custom_fields-2.14.0.alpha1 lib/custom_fields/extensions/mongoid/document.rb
custom_fields-2.13.1 lib/custom_fields/extensions/mongoid/document.rb
custom_fields-2.13.0 lib/custom_fields/extensions/mongoid/document.rb