Sha256: c4a39a0e7386e58eca02a4ea93b7059c675fbb73a6bb0aa07417b394adcfcb7f

Contents?: true

Size: 411 Bytes

Versions: 35

Compression:

Stored size: 411 Bytes

Contents

class ApplicationController < ActionController::Base
  before_action :run_validations
  
  resource_description do
    param :oauth, String, :desc => "Authorization", :required => false

    returns :code => 401 do
      property :reason, String, "Why authorization was denied"
    end
  end

  def run_validations
    if Apipie.configuration.validate == :explicitly
      apipie_validations
    end
  end

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
apipie-rails-1.4.2 spec/dummy/app/controllers/application_controller.rb
apipie-rails-1.4.1 spec/dummy/app/controllers/application_controller.rb
apipie-rails-1.4.0 spec/dummy/app/controllers/application_controller.rb
apipie-rails-1.3.0 spec/dummy/app/controllers/application_controller.rb
apipie-rails-1.2.3 spec/dummy/app/controllers/application_controller.rb
apipie-rails-1.2.2 spec/dummy/app/controllers/application_controller.rb
apipie-rails-1.2.1 spec/dummy/app/controllers/application_controller.rb
apipie-rails-1.2.0 spec/dummy/app/controllers/application_controller.rb
apipie-rails-1.1.0 spec/dummy/app/controllers/application_controller.rb
apipie-rails-1.0.0 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.9.4 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.9.3 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.9.2 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.9.1 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.9.0 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.8.2 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.8.1 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.8.0 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.7.2 spec/dummy/app/controllers/application_controller.rb
apipie-rails-0.7.1 spec/dummy/app/controllers/application_controller.rb