Module: ThinkFeelDoEngine::ApplicationHelper

Includes:
FontAwesome::Rails::IconHelper
Defined in:
app/helpers/think_feel_do_engine/application_helper.rb

Overview

Ensure font awesome icon helpers are available.

Instance Method Summary collapse

Instance Method Details



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

def host_email_link
  host_url = Rails.application.config.action_mailer
                  .default_url_options[:host]
  host_url if host_url
end

#phq_features?Boolean

Returns:

  • (Boolean)


13
14
15
16
17
# File 'app/helpers/think_feel_do_engine/application_helper.rb', line 13

def phq_features?
  if Rails.application.config.respond_to?(:include_phq_features)
    Rails.application.config.include_phq_features
  end
end

#social_features?Boolean

Returns:

  • (Boolean)


19
20
21
22
23
# File 'app/helpers/think_feel_do_engine/application_helper.rb', line 19

def social_features?
  if Rails.application.config.respond_to?(:include_social_features)
    Rails.application.config.include_social_features
  end
end