Module: Hubspot::ActionControllerExtensions

Extended by:
ActiveSupport::Concern
Defined in:
lib/hubspot/action_controller_extensions.rb

Instance Method Summary collapse

Instance Method Details

#hubspot_user_tokenObject

Returns the user token (GUID). This can be used to check whether the current user has been recorded as a Lead.



10
11
12
# File 'lib/hubspot/action_controller_extensions.rb', line 10

def hubspot_user_token
  @hubspot_user_token ||= cookies[:hubspotutk]
end