Sha256: 5cda4eb90249465278b897bedc5a2183647e6f2a4491a2649d827da839798142
Contents?: true
Size: 504 Bytes
Versions: 25
Compression:
Stored size: 504 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
25 entries across 25 versions & 1 rubygems