Sha256: a47aaa7f1f1916bde66de0138f66a822ba41ceee4900c75a8ceae39a02a56592

Contents?: true

Size: 598 Bytes

Versions: 7

Compression:

Stored size: 598 Bytes

Contents

module DceLti
  class ConfigsController < ApplicationController
    skip_before_filter :authenticate_via_lti
    respond_to :xml

    def index
      tool_config = ::IMS::LTI::ToolConfig.new(
        launch_url: sessions_url,
        title: engine_config.provider_title,
        description: engine_config.provider_description,
      )

      if engine_config.respond_to?(:tool_config_extensions)
        engine_config.tool_config_extensions.call(self, tool_config)
      end

      respond_with tool_config
    end

    private

    def engine_config
      DceLti::Engine.config
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dce_lti-0.5.3 app/controllers/dce_lti/configs_controller.rb
dce_lti-0.5.2 app/controllers/dce_lti/configs_controller.rb
dce_lti-0.5.1 app/controllers/dce_lti/configs_controller.rb
dce_lti-0.5.0 app/controllers/dce_lti/configs_controller.rb
dce_lti-0.4.0 app/controllers/dce_lti/configs_controller.rb
dce_lti-0.3.0 app/controllers/dce_lti/configs_controller.rb
dce_lti-0.2.0 app/controllers/dce_lti/configs_controller.rb