attachment new version
This commit is contained in:
@@ -1,2 +1,9 @@
|
||||
module AttachmentsHelper
|
||||
|
||||
def render_attachments_for(p)
|
||||
a= Attachment.new
|
||||
a.parent=p
|
||||
render(partial:"attachments/attachment_list", object: p.attachments, locals: {editor: (can?(:edit, p)), parent: p} )+ ((can?(:edit, p))? (render partial:"attachments/form_bulk2", object: a ): "")
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user