Sha256: d7ac596da2f668557df3acae2c11332fb7632a4c8001d2244a7987ecdfe75ee0

Contents?: true

Size: 428 Bytes

Versions: 51

Compression:

Stored size: 428 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

  named_scope :distinct, :select => 'DISTINCT `users`.*'
  named_scope :poor, :conditions => ['salary <= ?', 80000], :order => 'salary'

  def self.per_page() 10 end
end

Version data entries

51 entries across 51 versions & 23 rubygems

Version Path
decisiv-will_paginate-2.3.6.1 test/fixtures/developer.rb
decisiv-will_paginate-2.3.6 test/fixtures/developer.rb
decisiv-will_paginate-2.3.8.1 test/fixtures/developer.rb
dweinand-will_paginate-2.3.4 test/fixtures/developer.rb
dweinand-will_paginate-2.3.7 test/fixtures/developer.rb
fermion-will_paginate-2.3.8 test/fixtures/developer.rb
gcirne-will_paginate-2.3.8 test/fixtures/developer.rb
gigpark-will_paginate-2.3.11 test/fixtures/developer.rb
kamal-will_paginate-2.3.8 test/fixtures/developer.rb
mislav-will_paginate-2.3.10 test/fixtures/developer.rb
mislav-will_paginate-2.3.4 test/fixtures/developer.rb
mislav-will_paginate-2.3.5 test/fixtures/developer.rb
mislav-will_paginate-2.3.6 test/fixtures/developer.rb
mislav-will_paginate-2.3.7 test/fixtures/developer.rb
mislav-will_paginate-2.3.8 test/fixtures/developer.rb
myobie-will_paginate-2.3.5 test/fixtures/developer.rb
oboxodo-will_paginate-2.3.5 test/fixtures/developer.rb
shingara-will_paginate-2.3.10 test/fixtures/developer.rb
stilkov-will_paginate-2.3.6 test/fixtures/developer.rb
stilkov-will_paginate-2.3.8 test/fixtures/developer.rb