Sha256: ab3b35c8dcae3ae87cebed87b3be89ccb51a996609052dd74006d128abd3bb08

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

# module ApacheAge
#   module VertexTypeValidator
#     def
#       # Register the AGE typesvertex_attribute(attribute_name, type_symbol, klass)
#       attribute attribute_name, type_symbol

#       validate do
#         value = send(attribute_name)
#         unless value.is_a?(klass)
#           errors.add(attribute_name, "must be a #{klass.name}")
#         end
#       end
#     end
#   end
# end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_age-0.6.4 lib/apache_age/validators/vertex_type_validator.rb
rails_age-0.6.3 lib/apache_age/validators/vertex_type_validator.rb
rails_age-0.6.2 lib/apache_age/validators/vertex_type_validator.rb
rails_age-0.6.1 lib/apache_age/validators/vertex_type_validator.rb
rails_age-0.6.0 lib/apache_age/validators/vertex_type_validator.rb