Sha256: 4994dbb235e7bf1c82399163530566b99bbcf3960c92c673dcfaa358dbd777b3

Contents?: true

Size: 428 Bytes

Versions: 65

Compression:

Stored size: 428 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 += other.where_values
        relation
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
active-fedora-11.5.6 lib/active_fedora/relation/merger.rb
active-fedora-11.2.1 lib/active_fedora/relation/merger.rb
active-fedora-12.0.3 lib/active_fedora/relation/merger.rb
active-fedora-11.5.5 lib/active_fedora/relation/merger.rb
active-fedora-11.5.4 lib/active_fedora/relation/merger.rb
active-fedora-11.5.3 lib/active_fedora/relation/merger.rb
active-fedora-12.0.2 lib/active_fedora/relation/merger.rb
active-fedora-12.0.1 lib/active_fedora/relation/merger.rb
active-fedora-11.5.2 lib/active_fedora/relation/merger.rb
active-fedora-12.0.0 lib/active_fedora/relation/merger.rb
active-fedora-11.5.0 lib/active_fedora/relation/merger.rb
active-fedora-11.4.1 lib/active_fedora/relation/merger.rb
active-fedora-11.4.0 lib/active_fedora/relation/merger.rb
active-fedora-11.3.1 lib/active_fedora/relation/merger.rb
active-fedora-11.3.0 lib/active_fedora/relation/merger.rb
active-fedora-11.2.0 lib/active_fedora/relation/merger.rb
active-fedora-11.1.6 lib/active_fedora/relation/merger.rb
active-fedora-11.1.5 lib/active_fedora/relation/merger.rb
active-fedora-11.1.4 lib/active_fedora/relation/merger.rb
active-fedora-11.1.3 lib/active_fedora/relation/merger.rb