use lambdas for scopes to address rails4 deprecations
update activerecord syntax
Merge pull request #2 from seanwalbran/rails4-compat

Rails4 compatibility