Sha256: 8af5474f4446e35ae1af2cbd665c3206f4d0f40cdf7d70f4fcf0d10a2341a29e
Contents?: true
Size: 383 Bytes
Versions: 36
Compression:
Stored size: 383 Bytes
Contents
module Cms module Extensions module ActiveRecord module Base def updated_on_string(fmt="%b %e, %Y") if respond_to?(:updated_at) && updated_at updated_at.strftime(fmt).gsub(/\s{2,}/," ") else nil end end end end end end ActiveRecord::Base.send(:include, Cms::Extensions::ActiveRecord::Base)
Version data entries
36 entries across 36 versions & 11 rubygems