Sha256: 204659697ef5b6d3b2a9c0480bdb24b39dd187e4ca5cbe6148b443735743afcf

Contents?: true

Size: 382 Bytes

Versions: 14

Compression:

Stored size: 382 Bytes

Contents

module Spree
  module Api
    module Returnly
      class ApiController < Spree::Api::BaseController
        before_action :set_headers

        def set_headers
          response.headers['X-Returnly-Extension-Version'] = ::Returnly::VERSION
          response.headers['X-Returnly-Extension-Platform-Qualifier'] = ::Returnly.platform_version
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
spree-returnly-0.13.1 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.13.1 app/controllers/spree/api/returnly/api_controller.rb
spree-returnly-0.13.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.13.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.12.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.11.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.10.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.9.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.8.1 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.8.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.7.1 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.7.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.6.2 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.6.1 app/controllers/spree/api/returnly/api_controller.rb