Rails 4 compatibility
Remove deprecated ActiveRecord query syntax
Merge pull request #37 from mispy/rails-4-compatibility

Rails 4 compatibility