Sha256: ca3237dc6da91ab08c6fa52cc5fc2cb2ba0b9ed964dd121d34a568441a637ee6

Contents?: true

Size: 218 Bytes

Versions: 8

Compression:

Stored size: 218 Bytes

Contents

require "moments"

module Sequel
  module Plugins
    module Age
      module InstanceMethods
        def age
          @age ||= Moments.difference(Time.now, created_at.to_time)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pact_broker-2.112.0 lib/sequel/plugins/age.rb
pact_broker-2.111.0 lib/sequel/plugins/age.rb
pact_broker-2.109.1 lib/sequel/plugins/age.rb
pact_broker-2.109.0 lib/sequel/plugins/age.rb
pact_broker-2.108.0 lib/sequel/plugins/age.rb
pact_broker-2.107.1 lib/sequel/plugins/age.rb
pact_broker-2.107.0 lib/sequel/plugins/age.rb
pact_broker-2.107.0.beta.1 lib/sequel/plugins/age.rb