Sha256: a94ea7e71b959fe981aa4b5270d35f5c2efdc19b1ab7177122e8be1be2680b73

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 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['canceled_at'] = Time.now
    #   ...
    # end
    def intercom_custom_data
      @_request_specific_intercom_custom_data ||= {}
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
intercom-rails-0.1.1 lib/intercom-rails/custom_data_helper.rb
intercom-rails-0.1.0 lib/intercom-rails/custom_data_helper.rb