X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Frails%2Factivesupport%2Flib%2Factive_support%2Fordered_options.rb;fp=vendor%2Frails%2Factivesupport%2Flib%2Factive_support%2Fordered_options.rb;h=642045186f56a2340df1edc7ba205473bda57852;hb=437aa336c44c74a30aeea16a06743c32747ed661;hp=0000000000000000000000000000000000000000;hpb=97a0772b06264134cfe38e7494f9427efe0840a0;p=feedcatcher.git

diff --git a/vendor/rails/activesupport/lib/active_support/ordered_options.rb b/vendor/rails/activesupport/lib/active_support/ordered_options.rb
new file mode 100644
index 0000000..6420451
--- /dev/null
+++ b/vendor/rails/activesupport/lib/active_support/ordered_options.rb
@@ -0,0 +1,19 @@
+module ActiveSupport #:nodoc:
+  class OrderedOptions < OrderedHash #:nodoc:
+    def []=(key, value)
+      super(key.to_sym, value)
+    end
+
+    def [](key)
+      super(key.to_sym)
+    end
+
+    def method_missing(name, *args)
+      if name.to_s =~ /(.*)=$/
+        self[$1.to_sym] = args.first
+      else
+        self[name]
+      end
+    end
+  end
+end