Sha256: 68bff7f7c34b2e82ed4a7f32f0b7ae1ba240e219bec058525889fbad229282b7

Contents?: true

Size: 210 Bytes

Versions: 12

Compression:

Stored size: 210 Bytes

Contents

class Developer < User
  has_and_belongs_to_many :projects, :join_table => 'developers_projects'

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

  def self.per_page() 10 end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
will_paginate-3.3.1 spec/fixtures/developer.rb
will_paginate-3.3.0 spec/fixtures/developer.rb
will_paginate-3.2.1 spec/fixtures/developer.rb
will_paginate-3.2.0 spec/fixtures/developer.rb
will_paginate-3.1.8 spec/fixtures/developer.rb
will_paginate-3.1.7 spec/fixtures/developer.rb
will_paginate-3.1.6 spec/fixtures/developer.rb
will_paginate-3.1.5 spec/fixtures/developer.rb
will_paginate-3.1.3 spec/fixtures/developer.rb
will_paginate-3.1.2 spec/fixtures/developer.rb
will_paginate-3.1.1 spec/fixtures/developer.rb
will_paginate-3.1.0 spec/fixtures/developer.rb