use where method to find models when find_all_by_id is not available
Merge pull request #78 from dontfidget/rails4

use rails4 find_by method when available