Skip to content

Instantly share code, notes, and snippets.

@mtkd
Created March 4, 2012 21:15
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 mtkd/1974819 to your computer and use it in GitHub Desktop.
Save mtkd/1974819 to your computer and use it in GitHub Desktop.
Models not using attr_accessible
#To see how many models in a Rails project are not using attr_accessible:
$find app/models -type f -name \*.rb | wc -l
$grep -r -m1 "attr_accessible app/models | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment