summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMislav Marohnić <mislav.marohnic@gmail.com>2010-08-26 12:43:05 +0200
committerMislav Marohnić <mislav.marohnic@gmail.com>2010-08-26 12:48:53 +0200
commit6cc477c02ece71b45247083b105e5a727dbf97d6 (patch)
treefd68633636886150266c8b7be8fdf83815391a54
parent8d4e599209da9827c5748946b843f6c72220785d (diff)
downloadhashie-6cc477c02ece71b45247083b105e5a727dbf97d6.tar.gz
add missing requires to Hash and Mash
If the user required the main files with autoloads, these requires are not needed, but it's good to have them in case the user never requires the main file, but goes straight to one of the sub-files: gem 'hashie' require 'hashie/mash'
-rw-r--r--lib/hashie/hash.rb2
-rw-r--r--lib/hashie/mash.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/hashie/hash.rb b/lib/hashie/hash.rb
index 0f87364..edd8293 100644
--- a/lib/hashie/hash.rb
+++ b/lib/hashie/hash.rb
@@ -1,3 +1,5 @@
+require 'hashie/hash_extensions'
+
module Hashie
# A Hashie Hash is simply a Hash that has convenience
# functions baked in such as stringify_keys that may
diff --git a/lib/hashie/mash.rb b/lib/hashie/mash.rb
index 91ba79e..c8bb678 100644
--- a/lib/hashie/mash.rb
+++ b/lib/hashie/mash.rb
@@ -1,3 +1,5 @@
+require 'hashie/hash'
+
module Hashie
# Mash allows you to create pseudo-objects that have method-like
# accessors for hash keys. This is useful for such implementations