Sha256: 852793dbc4e6fedcbc1a0a61f83e0e7335011ec75c2ec6ece1320fd797d1e959

Contents?: true

Size: 250 Bytes

Versions: 7

Compression:

Stored size: 250 Bytes

Contents

module UpdatedAgo
  extend ActiveSupport::Concern

  included do
    include Mongoid::Timestamps
    include ActionView::Helpers::DateHelper

    def updated_ago
      updated_at ? "updated #{time_ago_in_words(updated_at)} ago" : ''
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
character-1.0.6 app/models/concerns/updated_ago.rb
character-1.0.5 app/models/concerns/updated_ago.rb
character-1.0.4 app/models/concerns/updated_ago.rb
character-1.0.3 app/models/concerns/updated_ago.rb
character-1.0.2 app/models/concerns/updated_ago.rb
character-1.0.1 app/models/concerns/updated_ago.rb
character-1.0.0 app/models/concerns/updated_ago.rb