Sha256: 5eba4a360c00658c90a8795c1d62143a1af47c9d4bfb3aaa65ee35115ec1a451

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

module TrackerApi
  module Resources
    module Shared
      class Collection < Array
        def <<(item)
          warn """
            WARNING: Direct mutation of an attribute value skips coercion
            and dirty tracking. Please use direct assignment or the
            specialized add_* methods to get expected behavior.
            https://github.com/solnic/virtus#important-note-about-member-coercions
            """
          super
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tracker_api-1.1.0 lib/tracker_api/resources/shared/collection.rb
tracker_api-1.0.0 lib/tracker_api/resources/shared/collection.rb