Permalink
Browse files

let (array|hash)/conversions.rb load the extensions in object/to_(par…

…am|query).rb
  • Loading branch information...
1 parent 3395633 commit 0787cea3bb5e6f2c216e71090732bc55ee03c7dc @fxn fxn committed Oct 9, 2012
@@ -1,6 +1,8 @@
require 'active_support/xml_mini'
require 'active_support/core_ext/hash/keys'
require 'active_support/core_ext/string/inflections'
+require 'active_support/core_ext/object/to_param'
+require 'active_support/core_ext/object/to_query'
class Array
# Converts the array to a comma-separated sentence where the last element is
@@ -1,8 +1,10 @@
require 'active_support/xml_mini'
require 'active_support/time'
+require 'active_support/core_ext/object/blank'
+require 'active_support/core_ext/object/to_param'
+require 'active_support/core_ext/object/to_query'
require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/hash/reverse_merge'
-require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/string/inflections'
class Hash
@@ -5,8 +5,6 @@
require 'active_support/ordered_hash'
require 'active_support/core_ext/object/deep_dup'
require 'active_support/inflections'
-require 'active_support/core_ext/object/to_param'
-require 'active_support/core_ext/object/to_query'
class HashExtTest < ActiveSupport::TestCase
class IndifferentHash < HashWithIndifferentAccess

0 comments on commit 0787cea

Please sign in to comment.