Created
August 17, 2016 17:09
-
-
Save mjc-gh/48f6e6740ecf6f45d4ac1c02fc7b80cd to your computer and use it in GitHub Desktop.
Simon Says Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ReportsController < ApplicationController | |
authorize_resource :admin, :support | |
find_resource :report, from: :current_admin, except: [:index, :new, :create] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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