Sha256: 299307bfea0388633f1ff5e072519f2dfd242df7f57e7cf4de6806de294c9cf7

Contents?: true

Size: 214 Bytes

Versions: 13

Compression:

Stored size: 214 Bytes

Contents

module Ddr
  module Models
    module HasChildren

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

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ddr-models-2.0.1 lib/ddr/models/has_children.rb
ddr-models-2.0.0 lib/ddr/models/has_children.rb
ddr-models-2.0.0.rc6 lib/ddr/models/has_children.rb
ddr-models-2.0.0.rc5 lib/ddr/models/has_children.rb
ddr-models-2.0.0.rc4 lib/ddr/models/has_children.rb
ddr-models-2.0.0.rc3 lib/ddr/models/has_children.rb
ddr-models-2.0.0.rc2 lib/ddr/models/has_children.rb
ddr-models-2.0.0.rc1 lib/ddr/models/has_children.rb
ddr-models-2.0.0.pre.5 lib/ddr/models/has_children.rb
ddr-models-2.0.0.pre.4 lib/ddr/models/has_children.rb
ddr-models-2.0.0.pre.3 lib/ddr/models/has_children.rb
ddr-models-2.0.0.pre.2 lib/ddr/models/has_children.rb
ddr-models-2.0.0.pre.1 lib/ddr/models/has_children.rb