lib/onebox/helpers.rb in onebox-1.2.5 vs lib/onebox/helpers.rb in onebox-1.2.6
- old
+ new
@@ -1,7 +1,9 @@
module Onebox
module Helpers
def self.symbolize_keys(hash)
+ return {} if hash.nil?
+
hash.inject({}){|result, (key, value)|
new_key = case key
when String then key.to_sym
else key
end