1
@recipients = reply.case.users.map(&:email).delete(reply.created_by.email)*","
Ruby On Remove element from array
by teamco-anthill.blogspot.com,
September 03, 2009 13:51
Smaller version
1 2 3 4
def download dl_opts = params[:dl].nil? ? 'attachment' : 'inline' dl_img = params[:type].nil? ? "" : "_#{params[:type]}" ...
Ruby Download file
Try to refactor send file code
1 2 3 4
def archive_files(source, glob_mask, destination) Dir.glob(File.join(source, glob_mask)) do |file| should_copy_file = true ...
Ruby On Ruby Idioms
by teamco-anthill.blogspot.com,
March 15, 2009 12:31
Refactored by Netbeans hints
