Sha256: d0153d7420a3fae024357cfa76b4f09ad2c3ee308d692cf0ae988849b8441d06

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

module MediaMagick
  module ApplicationHelper
    def attachment_container(model, relation, newAttachments = {}, loadedAttachments= {})
      content_tag :div, id: model.class.to_s.downcase << '-' << relation.to_s, class: 'attachmentUploader ' << relation.to_s, data: { model: model.class.to_s, id: model.id.to_s, relation: relation.to_s } do
        if block_given?
          yield
        else
          render :partial => "/upload", :locals => { model: model, relations: relation, newAttachments: newAttachments, loadedAttachments: loadedAttachments }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
media_magick-0.0.1 app/helpers/media_magick/application_helper.rb