Module: ApplicationHelper

Defined in:
app/helpers/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#google_analytics_idObject



7
8
9
# File 'app/helpers/application_helper.rb', line 7

def google_analytics_id
  Rails.application.secrets.google_analytics_id
end

#hotjar_idObject



11
12
13
# File 'app/helpers/application_helper.rb', line 11

def hotjar_id
  Rails.application.secrets.hotjar_id
end

#slack_chat?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'app/helpers/application_helper.rb', line 3

def slack_chat?
  Configurable[:use_helpdesk_chat] and (current_user or Configurable[:anonymous_helpdesk_chat])
end