align code
change find_all_by_ to where
change find_or_create_by_ to find_or_create_by
remove code that is commented out
change find_last_by_ to where(...).last
change find_all_by_ to where; update TODO
address houndci warnings
address houndci warnings
fix indentation
fix indentation
Merge pull request #1910 from YusiFan/rails4_new

Rails4 new