From 266b80c7b28c7587ab1c75aae6e3288e2f6c1aba Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Mon, 13 Jun 2011 22:45:34 -0700 Subject: OrderedOptions must implement respond_to? if it implements method_missing. --- activesupport/lib/active_support/ordered_options.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/lib/active_support/ordered_options.rb') diff --git a/activesupport/lib/active_support/ordered_options.rb b/activesupport/lib/active_support/ordered_options.rb index 8d8e6ebc58..bf81567d22 100644 --- a/activesupport/lib/active_support/ordered_options.rb +++ b/activesupport/lib/active_support/ordered_options.rb @@ -36,6 +36,10 @@ module ActiveSupport #:nodoc: self[name] end end + + def respond_to?(name) + true + end end class InheritableOptions < OrderedOptions -- cgit v1.2.3