Sha256: 9f9e6731d5c72be1c105473345ecf517cba822e2ef4106fa37b4f0053d251b82

Contents?: true

Size: 442 Bytes

Versions: 3

Compression:

Stored size: 442 Bytes

Contents

module Kaui
  module AccountHelper

    def pretty_account_identifier
      return nil if @account.nil?
      @account.name.presence || @account.email.presence || truncate_uuid(@account.external_key)
    end

    def email_notifications_plugin_available?
      Kenui::EmailNotificationService.email_notification_plugin_available?(Kaui.current_tenant_user_options(current_user, session)).first
    rescue
      return false
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kaui-0.16.2 app/helpers/kaui/account_helper.rb
kaui-0.16.1 app/helpers/kaui/account_helper.rb
kaui-0.16.0 app/helpers/kaui/account_helper.rb