Fixing where call to be more railsy
Merge pull request #757 from jdalphon/generalChanges

Fixing where call to be more railsy