Sha256: c2302dd9c7ac4d0f27cc6798e75e7e53eabe5adea525a8c47cc1cb9bdc59b845
Contents?: true
Size: 430 Bytes
Versions: 24
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module Mongoid module Timestamps module Created # Adds a created_at timestamp to the document, but it is stored as c_at # with a created_at alias. module Short extend ActiveSupport::Concern included do include Created fields.delete("created_at") field :c_at, type: Time, as: :created_at end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems