ruby on rails - Cloning assosiations with attached file -



ruby on rails - Cloning assosiations with attached file -

i have got object wich using pattern. objects has got number of associations. 1 of association attach. object has many attaches. can clone all, know, db data, how should files, attached object.

i can imagine solutions, of them little hacky , don't native.

for illustration can add together virtual attribute temprorary store ids of attaches while cloning object.

what's solution have manage attachments? if paperclip, has callback handles remove/cloning real files on filesystem level.

ruby-on-rails ruby clone attachment

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -