Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Deal < ActiveRecord::Base
- include ActionView::Helpers::NumberHelper
- (...)
- def buyer_collection
- collection = (Investor.all + Company.all).map(&buyer_for_select)
- end
- private
- def buyer_for_select
- lambda { |record| [record.name, "#{record.class.name}:#{record.id}"] }
- end
- (...)
- end
Add Comment
Please, Sign In to add comment