Skip to content

Commit

Permalink
AC::ParameterMissing inherits from KeyError since it's more appropiat…
Browse files Browse the repository at this point in the history
…ed than IndexError
  • Loading branch information
guilleiguaran committed Sep 17, 2012
1 parent 9bfa13b commit 6ae93a0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -3,7 +3,7 @@
require 'active_support/rescuable'

module ActionController
class ParameterMissing < IndexError
class ParameterMissing < KeyError
attr_reader :param

def initialize(param)
Expand Down

0 comments on commit 6ae93a0

Please sign in to comment.