Sha256: 8a19dc1fa6d649ab80b6f0dcf7589a350220c24542ae844259a3bfbcf9ec1915
Contents?: true
Size: 260 Bytes
Versions: 1
Compression:
Stored size: 260 Bytes
Contents
module Superstore module Timestamp extend ActiveSupport::Concern class_methods do def inherited(child) super child.attribute :created_at, type: :time child.attribute :updated_at, type: :time end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superstore-2.5.0 | lib/superstore/timestamp.rb |