Sha256: caf72737e3dcd18c1f3f4057b46a93d9d3d458653ecf20b48e277ed078c4a26d

Contents?: true

Size: 365 Bytes

Versions: 14

Compression:

Stored size: 365 Bytes

Contents

class Developer < User
  has_and_belongs_to_many :projects, :include => :topics, :order => 'projects.name'

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

  scope :poor, :conditions => ['salary <= ?', 80000], :order => 'salary'

  def self.per_page() 10 end
end

Version data entries

14 entries across 14 versions & 7 rubygems

Version Path
hobo_will_paginate-2.1.1 spec/fixtures/developer.rb
hobo_will_paginate-2.1.0 spec/fixtures/developer.rb
hobo-will_paginate-3.0.4.hobo spec/fixtures/developer.rb
will_paginate-3.0.3 spec/fixtures/developer.rb
will_paginate-3.0.2 spec/fixtures/developer.rb
will_paginate-3.0.1 spec/fixtures/developer.rb
will_paginate-3.0.0 spec/fixtures/developer.rb
will_paginate-3.0.pre4 spec/fixtures/developer.rb
f1sherman-will_paginate-3.0.pre3 spec/fixtures/developer.rb
elmer-will_paginate-3.0.0 spec/fixtures/developer.rb
path-will_paginate-3.0.pre2 spec/fixtures/developer.rb
will_paginate-3.0.pre2 spec/fixtures/developer.rb
will_paginate-rails3-3.0.pre spec/fixtures/developer.rb
will_paginate-3.0.pre spec/fixtures/developer.rb