Show More
Commit Description:
shows contest start confirmation for indv contest
Commit Description:
shows contest start confirmation for indv contest
File last commit:
Show/Diff file:
Action:
vendor/plugins/will_paginate/test/fixtures/developer.rb | 14 lines | 428 B | text/x-ruby | RubyLexer |
Jittat Fakcharoenphol
added pagination to user_admin, using will_paginate plugin
r299 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