Class: IshManager::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/ish_manager/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#basic_authObject



16
17
18
19
# File 'app/controllers/ish_manager/application_controller.rb', line 16

def basic_auth
  return if Rails.env.test?
  http_basic_authenticate_or_request_with :name => BASIC_AUTH_NAME, :password => BASIC_AUTH_PASSWORD
end

#homeObject



21
22
23
24
# File 'app/controllers/ish_manager/application_controller.rb', line 21

def home
  authorize! :home, IshManager::Ability
  render 'home'
end

#tinymceObject



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

def tinymce
  authorize! :home, IshManager::Ability
  render layout: false
end