Sha256: 7d293f628938a3a9dcb15e176564302480e85cc629d77a9ef891dc0cd9171a75

Contents?: true

Size: 360 Bytes

Versions: 13

Compression:

Stored size: 360 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

13 entries across 13 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.3 app/controllers/alchemy/admin/languages_controller.rb
lc_alchemy_cms-3.2.1 app/controllers/alchemy/admin/languages_controller.rb
lc_alchemy_cms-3.2.0 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.2.0 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.2.0.rc1 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.2.0.beta app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.1 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0.rc3 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0.rc2 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0.rc1 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0.beta6 app/controllers/alchemy/admin/languages_controller.rb