Skip to content

Instantly share code, notes, and snippets.

@natematias
Created March 26, 2010 14:51
Show Gist options
  • Save natematias/344971 to your computer and use it in GitHub Desktop.
Save natematias/344971 to your computer and use it in GitHub Desktop.
#This script will change the existing card database for wagn so that the root template card specifies that reads will require an authenticated user rather than anonymous access as was the default
# The role encapsulating read needs authenticated user
Card.find_by_name("Basic+*tform").permit(:read, Role[:auth])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment