lib/firebug/session.rb in firebug-1.4.1 vs lib/firebug/session.rb in firebug-1.4.2

- old
+ new

@@ -5,16 +5,17 @@ # An ActiveRecord model of the CodeIgniter sessions table. class Session < ActiveRecord::Base self.table_name = 'default_ci_sessions' - # @return [Object] + # @return [Hash, Array] def user_data Firebug.unserialize(super || '') end - # @param [Object] value + # @param [Hash] value def user_data=(value) + value.transform_values! { |v| v.respond_to?(:public_id) ? v.public_id : v } super(Firebug.serialize(value)) end # @param [String] value def user_agent=(value)