Sha256: a7ba314cad7e5f5d2ea104c304d171ac7e7d4bca0623154d0e620368abf2a38a

Contents?: true

Size: 320 Bytes

Versions: 8

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true
module C
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception
    layout :layout

    def layout
      devise_controller? ? 'c/cms_login_layout' : 'c/application'
    end

    def current_ability
      Ability.new(current_user)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/controllers/c/application_controller.rb
cd2_catton_cms-1.1.34 app/controllers/c/application_controller.rb
cd2_catton_cms-1.1.33 app/controllers/c/application_controller.rb
cd2_catton_cms-1.1.32 app/controllers/c/application_controller.rb
cd2_catton_cms-1.1.31 app/controllers/c/application_controller.rb
cd2_catton_cms-1.1.30 app/controllers/c/application_controller.rb
cd2_catton_cms-1.1.20 app/controllers/c/application_controller.rb
cd2_catton_cms-1.1.10 app/controllers/c/application_controller.rb