Permalink
Browse files

serializing instances of Class or Module will fail. Therefore, they a…

…re explicitly excluded
  • Loading branch information...
1 parent 83fa01c commit 0918ea69feb26bceb53ff7ff720774ec8294998e @schmidt schmidt committed Sep 2, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/hoptoad_notifier.rb
View
@@ -243,7 +243,7 @@ def clean_hoptoad_params params #:nodoc:
end
def stringify_keys(hash) #:nodoc:
- hash.inject({}) do |h, pair|
+ hash.reject{|k,v| v.is_a? Module}.inject({}) do |h, pair|
h[pair.first.to_s] = pair.last.is_a?(Hash) ? stringify_keys(pair.last) : pair.last
h
end

0 comments on commit 0918ea6

Please sign in to comment.