Class: IshManager::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- IshManager::ApplicationController
show all
- Defined in:
- app/controllers/ish_manager/application_controller.rb
Direct Known Subclasses
AnalyticsController, ApplianceTmplsController, AppliancesController, CategoriesController, EmailActionsController, EmailAttachmentsController, EmailCampaignLeadsController, EmailCampaignsController, EmailContextsController, EmailConversationsController, EmailFiltersController, EmailMessagesController, EmailTemplatesController, EventsController, GalleriesController, ImageAssetsController, InvoicesController, IroAlertsController, IroOptionGetsController, IroPositionsController, IroPursesController, IroStrategiesController, IroWatchersController, LeadActionTemplatesController, LeadActionsController, LeadsController, LeadsetTagsController, LeadsetsController, MapsController, MarkersController, MeetingsController, NewsitemsController, OfficeActionsController, PaymentsController, PhotosController, PricesController, ProductsController, ReportsController, ScheduledEmailActionsController, ServerhostsController, SubscriptionsController, UnsubscribesController, UserProfilesController, VideosController, WcoLeadsetsController
Instance Method Summary
collapse
Instance Method Details
#basic_auth ⇒ Object
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
|
#home ⇒ Object
19
20
21
22
|
# File 'app/controllers/ish_manager/application_controller.rb', line 19
def home
authorize! :home, IshManager::Ability
render 'home'
end
|
#tinymce ⇒ Object
24
25
26
27
|
# File 'app/controllers/ish_manager/application_controller.rb', line 24
def tinymce
authorize! :home, IshManager::Ability
render layout: false
end
|