lib/intercom-rails/custom_data_helper.rb
def intercom_custom_data
      @_request_specific_intercom_custom_data ||= begin
        s = Struct.new(:user, :company).new
        s.user = {}
        s.company = {}
        s
      end
    end
def intercom_custom_data
      @_request_specific_intercom_custom_data ||= begin
        s = Struct.new(:user, :company).new
        s.user = {}
        s.company = {}
        s
      end
    end
This helper allows custom data attributes to be added to a user
 for the current request from within the controller. e.g.

 def destroy
   intercom_custom_data.user['canceled_at'] = Time.now
   ...
 end