Changed Rails major version check to include Rails 4
Fixed Rails 4 deprication warning "Returning a hash from a #scope or #default_scope block is deprecated."
Updated .travis.yml to use more recent versions of Ruby and Rails