lib/honeybadger/rails/controller_methods.rb in honeybadger-1.16.2 vs lib/honeybadger/rails/controller_methods.rb in honeybadger-1.16.3
- old
+ new
@@ -53,9 +53,10 @@
hash
end
end
def honeybadger_session_data
+ return {} unless session
if session.respond_to?(:to_hash)
session.to_hash
else
session.data
end