Sha256: 87065de1a687d0ca4259e9b0ff9e03d3ae94b8de72294985d40106089a3488eb

Contents?: true

Size: 383 Bytes

Versions: 7

Compression:

Stored size: 383 Bytes

Contents

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus-returnly-0.4.3 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.4.2 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.4.1 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.4.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.3.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.2.1 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.2.0 app/controllers/spree/api/returnly/api_controller.rb