search for: calc_sheet_performer_lin

Displaying 1 result from an estimated 1 matches for "calc_sheet_performer_lin".

2006 Jul 19
0
Find, .map and Distinct
@rate_types = PerformerCategoryRate.find( :all, :conditions => [ "performer_category_id = ?", @calc_sheet_performer_line.performer_category.id ], :select => "DISTINCT rate_type_id, min(id)", :group => "rate_type_id" ).map { |pc| [pc.rate_type.name, pc.id ] } I''m sure it''s something simpl...