Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- attribute_results = []
- attribute_names.each do |attribute_name|
- attribute_results << attribute_result_list.select{|ae| ae.attribute.to_s == attribute_name}.first
- end
- # which looks quite ugly to me.
Add Comment
Please, Sign In to add comment