Sha256: 347ea0b12565558e6e28c0ed04206f99d012ac9c1df56111b5547ff86958c566

Contents?: true

Size: 229 Bytes

Versions: 7

Compression:

Stored size: 229 Bytes

Contents

class SemiProtectedResourcesController < ApplicationController
  before_action :verify_authorized!, only: :index

  def index
    render plain: 'protected index'
  end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
capcoauth-0.7.0 spec/dummy/app/controllers/semi_protected_resources_controller.rb
capcoauth-0.6.3 spec/dummy/app/controllers/semi_protected_resources_controller.rb
capcoauth-0.6.2 spec/dummy/app/controllers/semi_protected_resources_controller.rb
capcoauth-0.6.1 spec/dummy/app/controllers/semi_protected_resources_controller.rb
capcoauth-0.6.0 spec/dummy/app/controllers/semi_protected_resources_controller.rb
capcoauth-0.5.1 spec/dummy/app/controllers/semi_protected_resources_controller.rb
capcoauth-0.5.0 spec/dummy/app/controllers/semi_protected_resources_controller.rb