Sha256: f8e0694810d48f07984150593e853a597743a0b392dbae1ed90a6f7d2094a36d

Contents?: true

Size: 419 Bytes

Versions: 6

Compression:

Stored size: 419 Bytes

Contents

module Mongoid
  module Fields
    class Standard
      # Is this field included in versioned attributes?
      #
      # @example Is the field versioned?
      #   field.versioned?
      #
      # @return [ true, false ] If the field is included in versioning.
      #
      # @since 2.1.0
      def versioned?
        @versioned ||= (options[:versioned].nil? ? true : options[:versioned])
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongoid-versioning-2.0.0 lib/mongoid/core_ext/fields/standard.rb
mongoid-versioning-1.2.0 lib/mongoid/core_ext/fields/standard.rb
mongoid-versioning-1.1.0 lib/mongoid/core_ext/fields/standard.rb
mongoid-versioning-1.0.0 lib/mongoid/core_ext/fields/standard.rb
mongoid-versioning-1.0.0.beta2 lib/mongoid/core_ext/fields/standard.rb
mongoid-versioning-1.0.0.beta1 lib/mongoid/core_ext/fields/standard.rb