Sha256: 69f76497097517226d78a840020ff1c7a18bb3874e838d9f4a5273034b340345
Contents?: true
Size: 327 Bytes
Versions: 7
Compression:
Stored size: 327 Bytes
Contents
module Grape module Validations class AsValidator < Base def initialize(attrs, options, required, scope, opts = {}) @alias = options super end def validate_param!(attr_name, params) params[@alias] = params[attr_name] params.delete(attr_name) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems