class SemiProtectedResourcesController < ApplicationController
  before_filter :doorkeeper_authorize!

  def index
    render text: 'protected index'
  end

  def show
    render text: 'protected show'
  end
end

class SemiProtectedResourcesController < ApplicationController
  before_filter :doorkeeper_authorize!, only: :index

  def index
    render text: 'protected index'
  end

  def show
    render text: 'non protected show'
  end
end

Undo behavior change on specs.
Undo behavior change on specs.

See
https://github.com/doorkeeper-gem/doorkeeper/pull/448/files#diff-403546b64759d2fcb933e8345a827403L2.
