Sha256: 994acaa5256d7fbaccbc189fa1c9ac9593c69880b6ba64628b4bcfe26f097139

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 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'] = ::Returnly::VERSION
          response.headers['X-Returnly-Extension-Platform-Qualifier'] = ::Returnly.platform_version
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus-returnly-0.6.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.5.1 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.5.0 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.5.0.rc1 app/controllers/spree/api/returnly/api_controller.rb
solidus-returnly-0.5.0.pre app/controllers/spree/api/returnly/api_controller.rb