Permalink
Browse files

AC::ParameterMissing inherits from KeyError since it's more appropiat…

…ed than IndexError
  • Loading branch information...
1 parent 9bfa13b commit 6ae93a0fdf457fb964149c976e7da734a548cec3 @guilleiguaran guilleiguaran committed Sep 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -3,7 +3,7 @@
require 'active_support/rescuable'
module ActionController
- class ParameterMissing < IndexError
+ class ParameterMissing < KeyError
attr_reader :param
def initialize(param)

0 comments on commit 6ae93a0

Please sign in to comment.