You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
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
|