pdfshop/app/controllers/application_controller.rb

17 lines
274 B
Ruby

# ApplicationController
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
layout :layout_by_resource
protected
def layout_by_resource
if devise_controller?
'devise'
else
'application'
end
end
end