Sha256: fd803d94b2a62a8b2e93e91615e25b6f2c51c75c075f1e41e37090dff1b5c97f

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true
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

1 entries across 1 versions & 1 rubygems

Version Path
apress-api-1.24.2 app/controllers/apress/api/deprecated_versions_controller.rb