lib/grape/exceptions/validation_error.rb in grape-0.2.2 vs lib/grape/exceptions/validation_error.rb in grape-0.2.3

- old
+ new

@@ -1,10 +1,14 @@ require 'grape/exceptions/base' -class ValidationError < Grape::Exceptions::Base - attr_accessor :param +module Grape + module Exceptions + class ValidationError < Grape::Exceptions::Base + attr_accessor :param - def initialize(args = {}) - @param = args[:param].to_s if args.has_key? :param - super + def initialize(args = {}) + @param = args[:param].to_s if args.has_key? :param + super + end + end end end