Skip to content

Instantly share code, notes, and snippets.

@danmcclain
Created December 29, 2011 18:21
Show Gist options
  • Select an option

  • Save danmcclain/1535416 to your computer and use it in GitHub Desktop.

Select an option

Save danmcclain/1535416 to your computer and use it in GitHub Desktop.
if user.counselor? #checks role field
can :update, Student, school_id: user.school_id # says if the student's school_id is equal to the user's school id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment