```ruby
class Developer < User
  has_and_belongs_to_many :projects, :order => 'projects.name', :join_table => 'developers_projects'

  def self.with_poor_ones(&block)
    with_scope :find => { :conditions => ['salary <= ?', 80000], :order => 'salary' } do
      yield
    end
  end

  scope :poor, lambda {
    where(['salary <= ?', 80000]).order('salary')
  }

  def self.per_page() 10 end
end
```

Fix `with_scope` test for Rails 4.1
user
```ruby
class Developer < User
  has_and_belongs_to_many :projects, :order => 'projects.name', :join_table => 'developers_projects'

  def self.with_poor_ones(&block)
    options = { :conditions => ['salary <= ?', 80000], :order => 'salary' }
    with_scope({ :find => options }, :overwrite) do
      yield
    end
  end

  scope :poor, lambda {
    where(['salary <= ?', 80000]).order('salary')
  }

  def self.per_page() 10 end
end
```
assistant