Sha256: 473f6047c2d3d2b112328865c1ad9ed50fe6cbd756570332413571e8bee16982

Contents?: true

Size: 225 Bytes

Versions: 3

Compression:

Stored size: 225 Bytes

Contents

class ApplicationController < ActionController::Base
    layout :choose_layout

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ezii-os-5.2.1 app/controllers/application_controller.rb
ezii-os-2.0.1 app/controllers/application_controller.rb
ezii-os-1.1.0 app/controllers/application_controller.rb