Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unserializable data from the session

  • Loading branch information...
commit fc52ab96b1861ef43f2cde0eeac2443f12f35a11 1 parent fa2f3a1
Joe Ferris authored
Showing with 4 additions and 0 deletions.
  1. +3 −0  lib/hoptoad_notifier/notice.rb
  2. +1 −0  test/notice_test.rb
View
3  lib/hoptoad_notifier/notice.rb
@@ -242,6 +242,9 @@ def clean_params
clean_unserializable_data_from(:cgi_data)
filter(cgi_data)
end
+ if session_data
+ clean_unserializable_data_from(:session_data)
+ end
end
def filter(hash)
View
1  test/notice_test.rb
@@ -143,6 +143,7 @@ def stub_request(attrs = {})
should "convert unserializable objects to strings" do
assert_serializes_hash(:parameters)
assert_serializes_hash(:cgi_data)
+ assert_serializes_hash(:session_data)
end
should "filter parameters" do
Please sign in to comment.
Something went wrong with that request. Please try again.