Sha256: 8ec56ed821dbfc7d8e6674df839a2b899e24fc7734850dd8c78f8c800a72aac2
Contents?: true
Size: 276 Bytes
Versions: 2
Compression:
Stored size: 276 Bytes
Contents
require 'active_support' require 'active_support/time' module FeCoreExt::CoreExt end module FeCoreExt::CoreExt::Date def parse_as_future(string) date = parse(string) date > current ? date : date + 1.year end end class Date extend FeCoreExt::CoreExt::Date end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fe_core_ext-0.1.18 | lib/fe_core_ext/core_ext/date.rb |
fe_core_ext-0.1.17 | lib/fe_core_ext/core_ext/date.rb |