Sha256: 96807562dbd02222a4d200353e4d9ad752610ac29bb8896337725295cc93f943

Contents?: true

Size: 218 Bytes

Versions: 7

Compression:

Stored size: 218 Bytes

Contents

class FullProtectedResourcesController < ApplicationController
  doorkeeper_for :index
  doorkeeper_for :show, scopes: [:admin]

  def index
    render text: 'index'
  end

  def show
    render text: 'show'
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
doorkeeper-1.4.2 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-1.4.1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-1.4.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-1.3.1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-grants_assertion-0.0.1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-1.3.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-1.2.0 spec/dummy/app/controllers/full_protected_resources_controller.rb