Class: MnoEnterprise::ApplicationController

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

Instance Method Summary collapse

Methods included from ApplicationHelper

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

Instance Method Details

#current_abilityObject



27
28
29
# File 'app/controllers/mno_enterprise/application_controller.rb', line 27

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

#set_default_metaObject



31
32
33
34
35
# File 'app/controllers/mno_enterprise/application_controller.rb', line 31

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