Fixed Rails 4 deprication warning "Returning a hash from a #scope or #default_scope block is deprecated."