Sha256: caf72737e3dcd18c1f3f4057b46a93d9d3d458653ecf20b48e277ed078c4a26d
Contents?: true
Size: 365 Bytes
Versions: 14
Compression:
Stored size: 365 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 scope :poor, :conditions => ['salary <= ?', 80000], :order => 'salary' def self.per_page() 10 end end
Version data entries
14 entries across 14 versions & 7 rubygems