mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-25 08:34:08 +01:00
Updated to svn tags/tracks-1.6
This commit is contained in:
parent
103fcb8049
commit
02496f2d44
2274 changed files with 0 additions and 0 deletions
11
vendor/plugins/will_paginate/test/fixtures/developer.rb
vendored
Normal file
11
vendor/plugins/will_paginate/test/fixtures/developer.rb
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
|
||||
def self.per_page() 10 end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue