lib/arcade/base.rb
# add timestamp attributes to the model
#
# updated is optional
#
# timestamps are included in create and update statements
#
add timestamp attributes to the model
updated is optional

timestamps are included in create and update statements
add timestamp attributes to the model updated is optional timestamps are included in create and update statements
def timestamps set=nil
        if set && @stamps.nil?
          @stamps = true
          attribute :created, Types::JSON::DateTime
          attribute :updated?, Types::JSON::DateTime
        end
        @stamps
      end
def timestamps set = nil if set && @stamps . nil? @stamps = true attribute :created , Types :: JSON :: DateTime attribute :updated? , Types :: JSON :: DateTime end @stamps end
add timestamp attributes to the model
updated is optional
add timestamp attributes to the model updated is optional
set