Class: Cms::BaseController

Inherits:
ApplicationController show all
Defined in:
app/controllers/cms/base_controller.rb

Class Method Summary collapse

Methods inherited from ApplicationController

#no_browser_caching

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.

Parameters:

  • methods (Array<Symbol>)

    List of methods to disable security for.



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