Created
March 4, 2012 21:15
-
-
Save mtkd/1974819 to your computer and use it in GitHub Desktop.
Models not using attr_accessible
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
#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