Sha256: 39064cf33458e45502a6cbac2401198b625a8d5a1fe80d5d9ccf80ac7a7ee23d
Contents?: true
Size: 265 Bytes
Versions: 5
Compression:
Stored size: 265 Bytes
Contents
class ProtectedResourcesController < ApplicationController before_filter :authenticate_user! def index authorize! :index, :protected_resource render json: {} end def create authorize! :create, :protected_resource render json: {} end end
Version data entries
5 entries across 5 versions & 1 rubygems