Class: MnoEnterprise::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ApplicationHelper, Concerns::Controllers::AngularCSRF, Concerns::Controllers::I18n
Defined in:
app/controllers/mno_enterprise/application_controller.rb

Instance Method Summary collapse

Methods included from Concerns::Controllers::I18n

#set_locale

Methods included from ApplicationHelper

#alert_hash, #authenticate_user!, #authenticate_user_or_signup!, #avatar_url, #gravatar_url, #markdown, #notice_hash, #redirect_to_lounge_if_unconfirmed, #support_email

Instance Method Details

#current_abilityObject



34
35
36
# File 'app/controllers/mno_enterprise/application_controller.rb', line 34

def current_ability
  MnoEnterprise::Ability.new(current_user, session)
end

#set_default_metaObject



38
39
40
41
42
# File 'app/controllers/mno_enterprise/application_controller.rb', line 38

def set_default_meta
  @meta = {}
  @meta[:title] = MnoEnterprise.app_name
  @meta[:description] = "Enterprise Applications"
end