Sha256: d62b9cb2ff0f553ea778714372a0acc6456f474c35f56096e597f23ecc2fe878

Contents?: true

Size: 690 Bytes

Versions: 13

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true
module ThinkFeelDoEngine
  # Ensure font awesome icon helpers are available.
  module ApplicationHelper
    include FontAwesome::Rails::IconHelper

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

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

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.22.8 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.22.7 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.22.6 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.22.5 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.22.4 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.22.2 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.22.1 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.22.0 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.21.2 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.21.1 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.21.0 app/helpers/think_feel_do_engine/application_helper.rb
think_feel_do_engine-3.20.1 app/helpers/think_feel_do_engine/application_helper.rb