Module: ActiveGraph::Node::Validations::ClassMethods

Defined in:
lib/active_graph/node/validations.rb

Instance Method Summary collapse

Instance Method Details

#validates_uniqueness_of(*attr_names) ⇒ Object



16
17
18
# File 'lib/active_graph/node/validations.rb', line 16

def validates_uniqueness_of(*attr_names)
  validates_with UniquenessValidator, _merge_attributes(attr_names)
end