Class: Cms::BaseController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Cms::BaseController
- Defined in:
- app/controllers/cms/base_controller.rb
Direct Known Subclasses
AttachmentsController, CacheController, ConnectorsController, ContentBlockController, DashboardController, DynamicViewsController, EmailMessagesController, FormEntriesController, FormFieldsController, HomeController, InlineContentController, LinksController, PageRouteOptionsController, PageRoutesController, PagesController, ResourceController, RoutesController, SectionNodesController, SectionsController, TasksController, ToolbarController
Class Method Summary collapse
-
.allow_guests_to(methods) ⇒ Object
Disables the default security level for actions, meaning they will be available for guests to access.
Methods inherited from ApplicationController
Class Method Details
.allow_guests_to(methods) ⇒ Object
Disables the default security level for actions, meaning they will be available for guests to access. Users will not need to login prior to accessing these methods.
15 16 17 18 19 |
# File 'app/controllers/cms/base_controller.rb', line 15 def self.allow_guests_to(methods) skip_before_action :redirect_to_cms_site, only: methods skip_before_action :authenticate_cms_user!, only: methods skip_before_action :cms_access_required, only: methods end |