Sha256: 39c2c5e3b7bbf7326b17ebd48822b9110fd8f4034de2a2c98ec5e5d31e4b13f2

Contents?: true

Size: 578 Bytes

Versions: 5

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true

module Lcms
  module Engine
    class ExploreCurriculumController < Lcms::Engine::ApplicationController
      def index
        @props = interactor.index_props
        respond_to do |format|
          format.html
          format.json { render json: @props }
        end
      end

      def show
        @props = interactor.show_props
        respond_to do |format|
          format.json { render json: @props }
        end
      end

      private

      def interactor
        ExploreCurriculumInteractor.call(self)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lcms-engine-0.1.4 app/controllers/lcms/engine/explore_curriculum_controller.rb
lcms-engine-0.1.3 app/controllers/lcms/engine/explore_curriculum_controller.rb
lcms-engine-0.2.0 app/controllers/lcms/engine/explore_curriculum_controller.rb
lcms-engine-0.1.2 app/controllers/lcms/engine/explore_curriculum_controller.rb
lcms-engine-0.1.0 app/controllers/lcms/engine/explore_curriculum_controller.rb