Sha256: 9ae4f182158a85f801e1991a9236dc04776d99d54d44be0e71ec7d0dfe88dca3

Contents?: true

Size: 280 Bytes

Versions: 28

Compression:

Stored size: 280 Bytes

Contents

module ActiveSupport
  class Duration
    class << self
      def mongoize(object)
        object.parts.to_a.first.reverse
      end
      alias_method :evolve, :mongoize

      def demongoize(object)
        object.first.to_i.send(object.last.to_sym)
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.27 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.26 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.25 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.23 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.22 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.21 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.20 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.19 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.18 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.17 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.16 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.15 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.14 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.13 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.12 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.11 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.10 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.9 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.8 lib/workarea/ext/freedom_patches/active_support_duration.rb
workarea-core-3.5.7 lib/workarea/ext/freedom_patches/active_support_duration.rb