Sha256: 87c36f6ea9e9285afc47609a6dda719861d2de651949de8c409d45dece042002

Contents?: true

Size: 312 Bytes

Versions: 28

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

class FullProtectedResourcesController < ApplicationController
  before_action -> { doorkeeper_authorize! :write, :admin }, only: :show
  before_action :doorkeeper_authorize!, only: :index

  def index
    render plain: "index"
  end

  def show
    render plain: "show"
  end
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
doorkeeper-mongodb-5.4.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-mongodb-5.3.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-mongodb-5.2.3 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-sequel-2.4.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.1.2 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-mongodb-5.2.2 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-sequel-2.3.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.2.6 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.3.3 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.1.1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.2.5 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.3.2 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.4.0.rc1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-mongodb-5.2.1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-mongodb-5.2.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-sequel-2.2.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.2.4 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.3.1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.3.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-5.2.3 spec/dummy/app/controllers/full_protected_resources_controller.rb