Sha256: c1927b7c0f6c454775b960c799b84e2bdbc31e4fe044b7e839a54f8f861ef9ac

Contents?: true

Size: 255 Bytes

Versions: 27

Compression:

Stored size: 255 Bytes

Contents

require "active_support/duration"


module DurationExtensions

  def from(*args)
    since(*args)
  end

  def after(*args)
    since(*args)
  end

  def before(*args)
    ago(*args)
  end

end


ActiveSupport::Duration.send(:include, DurationExtensions)

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
houston-core-0.9.2 lib/core_ext/duration.rb
houston-core-0.9.1 lib/core_ext/duration.rb
houston-core-0.9.0 lib/core_ext/duration.rb
houston-core-0.9.0.rc1 lib/core_ext/duration.rb
houston-core-0.8.4 lib/core_ext/duration.rb
houston-core-0.8.3 lib/core_ext/duration.rb
houston-core-0.8.2 lib/core_ext/duration.rb
houston-core-0.8.1 lib/core_ext/duration.rb
houston-core-0.8.0 lib/core_ext/duration.rb
houston-core-0.8.0.pre2 lib/core_ext/duration.rb
houston-core-0.8.0.pre lib/core_ext/duration.rb
houston-core-0.7.0 lib/core_ext/duration.rb
houston-core-0.7.0.beta4 lib/core_ext/duration.rb
houston-core-0.7.0.beta3 lib/core_ext/duration.rb
houston-core-0.7.0.beta2 lib/core_ext/duration.rb
houston-core-0.7.0.beta lib/core_ext/duration.rb
houston-core-0.6.3 lib/core_ext/duration.rb
houston-core-0.6.2 lib/core_ext/duration.rb
houston-core-0.6.1 lib/core_ext/duration.rb
houston-core-0.6.0 lib/core_ext/duration.rb