Sha256: 8784a0d4be2189c7a4c4e74812e8ec52c4d98630ae597a2cfcb2a001df2c9063
Contents?: true
Size: 410 Bytes
Versions: 6
Compression:
Stored size: 410 Bytes
Contents
require 'grape/exceptions/base' module Grape module Exceptions class Validation < Grape::Exceptions::Base attr_accessor :param def initialize(args = {}) @param = args[:param].to_s if args.has_key? :param attribute = translate_attribute(@param) args[:message] = translate_message(args[:message_key], :attribute => attribute) super end end end end
Version data entries
6 entries across 6 versions & 1 rubygems