make scope activerecord 4.1 compatible
Merge pull request #17 from jormon/rails-4-1-x

make scope activerecord 4.1 compatible