class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :customer_check
private
def customer_check
# Some checks are here...
end
end
class OrdersController < ApplicationController
skip_before_action :customer_check, :only => [:new, :submit]
def new
end
def submit
end
# ...code...
end
class OrderFormController < OrdersController skip_before_action :customer_check
# ...code...end
class OrderForm::CompanyController < OrderFormController skip_before_action :customer_check
def update end # ...code...end
class OrderForm::RoutingController < OrderFormController skip_before_action :customer_check
def update end # ...code...end