From 6ae93a0fdf457fb964149c976e7da734a548cec3 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Mon, 10 Sep 2012 01:48:31 -0500 Subject: AC::ParameterMissing inherits from KeyError since it's more appropiated than IndexError --- actionpack/lib/action_controller/metal/strong_parameters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 11b7919b4b..c3c1921706 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -3,7 +3,7 @@ require 'active_support/core_ext/hash/indifferent_access' require 'active_support/rescuable' module ActionController - class ParameterMissing < IndexError + class ParameterMissing < KeyError attr_reader :param def initialize(param) -- cgit v1.2.3