Sha256: 6c55ee16bacd791a398c2ddeb299654e42dbc87a169f005dda499251e8af1f75

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

Stored size: 455 Bytes

Contents

module ActiveFedora
  class Relation
    class HashMerger # :nodoc:
    end

    class Merger # :nodoc:
      attr_reader :relation, :values, :other

      def initialize(relation, other)
        @relation = relation
        @values   = other.values
        @other    = other
      end

      def merge
        # TODO merge order
        relation.where_values = relation.where_values.merge(other.where_values)
        relation
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active-fedora-7.0.0.rc2 lib/active_fedora/relation/merger.rb
active-fedora-7.0.0.rc1 lib/active_fedora/relation/merger.rb
active-fedora-7.0.0.pre3 lib/active_fedora/relation/merger.rb
active-fedora-7.0.0.pre2 lib/active_fedora/relation/merger.rb
active-fedora-7.0.0.pre1 lib/active_fedora/relation/merger.rb