lib/intercom-rails/proxy.rb in intercom-rails-0.2.18 vs lib/intercom-rails/proxy.rb in intercom-rails-0.2.19

- old
+ new

@@ -20,10 +20,11 @@ @search_object = search_object @proxied_object = instance_variable_set(:"@#{type}", object_to_proxy) end def to_hash - standard_data.merge custom_data + data = standard_data.merge(custom_data) + DateHelper.convert_dates_to_unix_timestamps(data) end def standard_data proxied_values = self.class.standard_data_proxy_attributes.reduce({}) do |hsh, attribute_name| hsh[attribute_name] = send(attribute_name) if send(attribute_name).present?