Sha256: dbf9c501fe9c0c09e4988dd37d8add26a401c537fa7fe795c93f3f58b0b8d01b

Contents?: true

Size: 267 Bytes

Versions: 48

Compression:

Stored size: 267 Bytes

Contents

module Neo4j
	module Rails
		module Validations
			class NonNilValidator < ActiveModel::EachValidator
				def validate_each(record, attribute, value)
					record.errors.add(attribute, :nil, options.merge(:value => value)) if value.nil?
				end
			end
		end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
neo4j-2.3.0-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.2.4-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.2.3-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.2.1-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.2.0-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.2.0.rc1-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.1-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0.rc2-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0.rc1-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0.alpha.9-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0.alpha.8-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0.alpha.7-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0.alpha.6-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0.alpha.5-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0.alpha.4-java lib/neo4j/rails/validations/non_nil.rb
neo4j-2.0.0.alpha.3-java lib/neo4j/rails/validations/non_nil.rb
neo4j-1.3.1-java lib/neo4j/rails/validations/non_nil.rb
neo4j-1.3.0-java lib/neo4j/rails/validations/non_nil.rb
neo4j-1.2.6-java lib/neo4j/rails/validations/non_nil.rb