Sha256: 2ba672aaa3ac57644c60d727994eaba9bb5858a7849ce53ffabe0a1a7e476595
Contents?: true
Size: 500 Bytes
Versions: 20
Compression:
Stored size: 500 Bytes
Contents
module IntercomRails module CustomDataHelper # 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 def intercom_custom_data @_request_specific_intercom_custom_data ||= begin s = Struct.new(:user, :company).new s.user = {} s.company = {} s end end end end
Version data entries
20 entries across 20 versions & 1 rubygems