Sha256: d36b72c4ba756bbb5d7938cd441d7b2c9f637f19137debf37b0e5347b412d57b

Contents?: true

Size: 289 Bytes

Versions: 1

Compression:

Stored size: 289 Bytes

Contents

require_relative File.join("..","..","boot.rb")


begin
  relations_array = Array.new
  Mongoid::Document.classes.each do |class_name|
    relations_array.push class_name.constantize.getPaths[0]
  end
  relations_array= relations_array.sort_by{ |hsh| hsh.values }
end
puts relations_array

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clone-1.0.0.beta samples/mongoid/init/docs/mongoid/ModelsRelations.rb