lib/neo4j/rails/model.rb in neo4j-1.0.0.beta.6 vs lib/neo4j/rails/model.rb in neo4j-1.0.0.beta.7

- old
+ new

@@ -1,12 +1,17 @@ class Neo4j::Model include Neo4j::NodeMixin include ActiveModel::Validations include ActiveModel::Dirty include ActiveModel::MassAssignmentSecurity + extend ActiveModel::Naming extend ActiveModel::Callbacks + extend Neo4j::Validations::ClassMethods define_model_callbacks :create, :save, :update, :destroy + + + UniquenessValidator = Neo4j::Validations::UniquenessValidator class RecordInvalidError < RuntimeError attr_reader :record def initialize(record)