Sha256: f1d1d673b883f982271ccf22195f7a0e96b14a37ea4cd23bdc93cfa3a8c772f4

Contents?: true

Size: 216 Bytes

Versions: 12

Compression:

Stored size: 216 Bytes

Contents

module Ddr
  module Models
    module HasChildren

      def first_child
        ActiveFedora::Base.where(association_query(:children)).order("#{Ddr::IndexFields::IDENTIFIER} ASC").first
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ddr-models-1.17.1 lib/ddr/models/has_children.rb
ddr-models-1.17.0 lib/ddr/models/has_children.rb
ddr-models-1.16.2 lib/ddr/models/has_children.rb
ddr-models-1.16.1 lib/ddr/models/has_children.rb
ddr-models-1.16.0 lib/ddr/models/has_children.rb
ddr-models-1.15.0 lib/ddr/models/has_children.rb
ddr-models-1.14.2 lib/ddr/models/has_children.rb
ddr-models-1.14.1 lib/ddr/models/has_children.rb
ddr-models-1.14.0 lib/ddr/models/has_children.rb
ddr-models-1.13.2 lib/ddr/models/has_children.rb
ddr-models-1.13.1 lib/ddr/models/has_children.rb
ddr-models-1.13.0 lib/ddr/models/has_children.rb