Sha256: 11ec3ee491ff0f70986ae4f775670e6e7943a00a2de3e4ccba4b6f53533c63f9

Contents?: true

Size: 397 Bytes

Versions: 14

Compression:

Stored size: 397 Bytes

Contents

module Alchemy
  module Admin
    class LanguagesController < Alchemy::Admin::ResourcesController

      def new
        @language = Alchemy::Language.new
        @language.page_layout = (configured_page_layout or @language.page_layout)
      end

    protected

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

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
alchemy_cms-3.0.4 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0.beta5 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0.beta4 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.0.3 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0.beta3 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0.beta2 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.1.0.beta1 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.0.2 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.0.1 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.0.0 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.0.0.rc8 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.0.0.rc7 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.0.0.rc6 app/controllers/alchemy/admin/languages_controller.rb
alchemy_cms-3.0.0.rc5 app/controllers/alchemy/admin/languages_controller.rb