Sha256: c1122f805eaebe4967a5b61a362d9ad51606824c6e1a148fdf8b22d0f7a046c3

Contents?: true

Size: 359 Bytes

Versions: 6

Compression:

Stored size: 359 Bytes

Contents

module Alchemy
  module Admin
    class LanguagesController < ResourcesController
      def new
        @language = Language.new
        @language.page_layout = configured_page_layout || @language.page_layout
      end

      private

      def configured_page_layout
        Config.get(:default_language).try('[]', 'page_layout')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-3.3.3 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.3.2 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.3.1 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.3.0 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.3.0.rc2 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.3.0.rc1 app/controllers/alchemy/admin/languages_controller.rb