File: as.rb

package info (click to toggle)
ruby-grape 1.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,156 kB
  • sloc: ruby: 25,265; makefile: 7
file content (14 lines) | stat: -rw-r--r-- 361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Grape
  module Validations
    module Validators
      class AsValidator < Base
        # We use a validator for renaming parameters. This is just a marker for
        # the parameter scope to handle the renaming. No actual validation
        # happens here.
        def validate_param!(*); end
      end
    end
  end
end