Skip to content

Instantly share code, notes, and snippets.

Created April 2, 2015 14:31
Show Gist options
  • Save anonymous/cda0128b7074463e5c68 to your computer and use it in GitHub Desktop.
Save anonymous/cda0128b7074463e5c68 to your computer and use it in GitHub Desktop.
if permission.create == true
access << "create"
end
if permission.edit == true
access << "edit"
end
if permission.track == true
access << "track"
end
@SebastianThorn
Copy link

access << "create" if permission.create
access << "edit" if permission.edit
access << "track" if permission.track

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment