Sha256: d6d2fa702170b4eb43885edba2ddd2e30ead2d37a33ac0af2c1bb75ea4aa1d49
Contents?: true
Size: 225 Bytes
Versions: 4
Compression:
Stored size: 225 Bytes
Contents
module Grape module Validations class << self attr_accessor :validators end self.validators = {} def self.register_validator(short_name, klass) validators[short_name] = klass end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
grape-0.12.0 | lib/grape/validations.rb |
grape-0.11.0 | lib/grape/validations.rb |
grape-0.10.1 | lib/grape/validations.rb |
grape-0.10.0 | lib/grape/validations.rb |