Update attachment.rb