public
Created

Models not using attr_accessible

  • Download Gist
gistfile1.txt
1 2 3 4
#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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.