Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#choose_layoutObject



4
5
6
7
8
9
10
# File 'app/controllers/application_controller.rb', line 4

def choose_layout
  if params[:legacy_layout] == "1"
    "application_legacy"
  else
    "application"
  end
end