This file contains 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
#!/bin/sh | |
grep -R .find_by . | ruby -e 'STDIN.each do |l| puts "#{$1} #{$2}" if l =~ /([_\w]+)\.find_by_([_\w]+)/ && !%w[class self].include?($1) && !%w[solr sql id param].include?($2); end' | sort | uniq -c |