diff options
author | Chris Eppstein <chris@eppsteins.net> | 2011-06-13 22:45:34 -0700 |
---|---|---|
committer | Chris Eppstein <chris@eppsteins.net> | 2011-06-27 13:44:53 -0700 |
commit | 266b80c7b28c7587ab1c75aae6e3288e2f6c1aba (patch) | |
tree | 6496df79a4a26af7e623faaa139af6a426cae395 /activesupport/lib | |
parent | f63f0baa59356fcb68beed46d4d6a26248c6385c (diff) | |
download | rails-266b80c7b28c7587ab1c75aae6e3288e2f6c1aba.tar.gz rails-266b80c7b28c7587ab1c75aae6e3288e2f6c1aba.tar.bz2 rails-266b80c7b28c7587ab1c75aae6e3288e2f6c1aba.zip |
OrderedOptions must implement respond_to? if it implements method_missing.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/ordered_options.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |