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

Version Path
SFEley-browsercms-3.0.2 lib/cms/extensions/active_record/base.rb
buzzware-browsercms-3.0.2 lib/cms/extensions/active_record/base.rb
coredumplings-browsercms-3.0.0 lib/cms/extensions/active_record/base.rb
nate-browsercms-3.0.210 lib/cms/extensions/active_record/base.rb
nate-browsercms-3.0.211 lib/cms/extensions/active_record/base.rb
we5-browsercms-3.0.1.1 lib/cms/extensions/active_record/base.rb
webficient-browsercms-3.0.1 lib/cms/extensions/active_record/base.rb
webficient-browsercms-3.0.2 lib/cms/extensions/active_record/base.rb
webficient-browsercms-3.0.3 lib/cms/extensions/active_record/base.rb
webficient-browsercms-3.0.4 lib/cms/extensions/active_record/base.rb
browsercms-3.1.5 lib/cms/extensions/active_record/base.rb
browsercms-3.1.4 lib/cms/extensions/active_record/base.rb
browsercms-3.1.3 lib/cms/extensions/active_record/base.rb
browsercms-3.3.0.beta lib/cms/extensions/active_record/base.rb
bf4-browsercms-3.1.0 lib/cms/extensions/active_record/base.rb
drujensen-browsercms-3.2.0 lib/cms/extensions/active_record/base.rb
browsercmsi-3.1.2 lib/cms/extensions/active_record/base.rb
browsercms-3.1.2 lib/cms/extensions/active_record/base.rb
browsercms-3.1.1 lib/cms/extensions/active_record/base.rb
browsercmsi-3.1.1 lib/cms/extensions/active_record/base.rb