Sha256: 29198a5c3c80599d5d8114377f589932c3ffd3ef1e0c989cd1d18852bb7c2936

Contents?: true

Size: 135 Bytes

Versions: 10

Compression:

Stored size: 135 Bytes

Contents

class Node
    include Mongoid::Document
    include Mongoid::Acts::Tree
    
   
    field :name

    validates_presence_of :name

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mongoid_tree-0.3.7 spec/models/node.rb
mongoid_tree-0.3.6 spec/models/node.rb
mongoid_tree-0.3.5 spec/models/node.rb
mongoid_tree-0.3.4 spec/models/node.rb
mongoid_tree-0.3.3 spec/models/node.rb
mongoid_tree-0.3.2 spec/models/node.rb
mongoid_tree-0.3.1 spec/models/node.rb
mongoid_tree-0.3.0 spec/models/node.rb
mongoid_tree-0.2.0 spec/models/node.rb
mongoid_tree-0.1.0 spec/models/node.rb