Skip to content

Instantly share code, notes, and snippets.

@mjc-gh
Created August 17, 2016 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjc-gh/48f6e6740ecf6f45d4ac1c02fc7b80cd to your computer and use it in GitHub Desktop.
Save mjc-gh/48f6e6740ecf6f45d4ac1c02fc7b80cd to your computer and use it in GitHub Desktop.
Simon Says Example
class ReportsController < ApplicationController
authorize_resource :admin, :support
find_resource :report, from: :current_admin, except: [:index, :new, :create]
end
SampleApplication::Application.routes.draw do
# Reports resource for Admins
resources :reports
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment