Sha256: ce433e7a97144786eef83f72ac316814c7d469e2b4a003c2c2f13e0638ab31df
Contents?: true
Size: 450 Bytes
Versions: 27
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Timestamps module Updated # Adds an updated_at timestamp to the document, but it is stored as u_at # with an updated_at alias. module Short extend ActiveSupport::Concern included do include Updated fields.delete("updated_at") field :u_at, type: Time, as: :updated_at end end end end end
Version data entries
27 entries across 27 versions & 2 rubygems