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



14
15
16
17
# File 'app/controllers/ish_manager/application_controller.rb', line 14

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

#homeObject



19
20
21
22
# File 'app/controllers/ish_manager/application_controller.rb', line 19

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

#tinymceObject



24
25
26
27
# File 'app/controllers/ish_manager/application_controller.rb', line 24

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