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.0.0 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.0.0.rc3 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.0.0.rc2 app/controllers/maglev/admin/themes_controller.rb
maglevcms-1.0.0.rc1 app/controllers/maglev/admin/themes_controller.rb