Sha256: bc17965a12fecdbd37fb1c40d1ac06dbd7600417cc55e7e76c11dd7e17a2f06c

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

module Apress
  module Api
    class DeprecatedVersionsController < ApiController::Base
      if (Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR == 2) || Rails::VERSION::MAJOR > 4
        skip_before_action :authenticate, only: :show
      else
        skip_before_filter :authenticate, only: :show
      end

      def show
        render_error(410)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apress-api-1.24.0 app/controllers/apress/api/deprecated_versions_controller.rb
apress-api-1.23.0 app/controllers/apress/api/deprecated_versions_controller.rb
apress-api-1.22.1 app/controllers/apress/api/deprecated_versions_controller.rb
apress-api-1.22.0 app/controllers/apress/api/deprecated_versions_controller.rb