Sha256: b6e75835bf4fed2658984e74116be8dbf152d2197c75152a577a937bfb383a76

Contents?: true

Size: 371 Bytes

Versions: 21

Compression:

Stored size: 371 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 :poor, :conditions => ['salary <= ?', 80000], :order => 'salary'

  def self.per_page() 10 end
end

Version data entries

21 entries across 21 versions & 15 rubygems

Version Path
auxesis-will_paginate-3.0.0 spec/fixtures/developer.rb
gohanlon-will_paginate-2.3.3 test/fixtures/developer.rb
jcnetdev-will_paginate-2.3.21 test/fixtures/developer.rb
mislav-will_paginate-2.2.3 test/fixtures/developer.rb
mislav-will_paginate-2.3.0 test/fixtures/developer.rb
mislav-will_paginate-2.3.1 test/fixtures/developer.rb
mislav-will_paginate-2.3.2 test/fixtures/developer.rb
mislav-will_paginate-2.3.3 test/fixtures/developer.rb
mknittig-will_paginate-3.0.0 spec/fixtures/developer.rb
pcg79-will_paginate-2.3.2 test/fixtures/developer.rb
shingara-will_paginate-2.3.3 test/fixtures/developer.rb
staugaard-will_paginate-2.3.3 test/fixtures/developer.rb
rails_tinymce-0.0.1 plugins/will_paginate/test/fixtures/developer.rb
svenaas-will_paginate-3.0.2 spec/fixtures/developer.rb
mjfreshyfresh-will_paginate-3.0.0 spec/fixtures/developer.rb
agnostic-will_paginate-3.0.0 spec/fixtures/developer.rb
merb_paginate-0.9.0 spec/fixtures/developer.rb
pictrails-0.5.0 vendor/plugins/will_paginate/test/fixtures/developer.rb
will_paginate-2.2.1 test/fixtures/developer.rb
will_paginate-2.2.0 test/fixtures/developer.rb