Files
metasploit-gs/lib/msf/core/model/attachment.rb
T
James Lee abf19e002d tweak the models
git-svn-id: file:///home/svn/framework3/trunk@10618 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-09 08:35:41 +00:00

17 lines
236 B
Ruby

class Msf::DBManager
class Attachment < ActiveRecord::Base
has_and_belongs_to_many :email_template
belongs_to :campaign
# Generate a unique Content-ID
def cid
@cid ||= Rex::Text.to_hex(name + id.to_s, '')
@cid
end
end
end