Sha256: 87c3dfd135dbb997aa8fa943dccf50f0470e659df553c7e83ed930cb6313199a

Contents?: true

Size: 364 Bytes

Versions: 24

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

module Maglev
  module Admin
    class ThemesController < BaseController
      helper_method :section_category_id

      def show
        @theme = services.fetch_theme.call
      end

      private

      def section_category_id
        params[:category_id].presence || @theme.section_categories.first.id
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
maglevcms-1.7.3 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.7.2 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.7.1 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.7.0 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.6.1 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.6.0 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.5.1 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.4.0 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.3.0 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.2.2 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.2.1 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.2.0 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.1.7 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.1.6 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.1.5 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.1.4 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.1.3 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.1.2 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.1.1 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.1.0 app/controllers/maglev/admin/themes_controller.rb