Sha256: 9f41270a16eca81466b3c09b558076687d1e35077645e8891f51c2aae60ec42a

Contents?: true

Size: 279 Bytes

Versions: 9

Compression:

Stored size: 279 Bytes

Contents

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

  def index
    render text: 'index'
  end

  def show
    render text: 'show'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
doorkeeper-3.1.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-3.0.1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-2.2.2 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-3.0.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-3.0.0.rc2 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-3.0.0.rc1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-2.2.1 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-2.2.0 spec/dummy/app/controllers/full_protected_resources_controller.rb
doorkeeper-2.1.4 spec/dummy/app/controllers/full_protected_resources_controller.rb