Sha256: 2296266e322b3b27e73aa9e09856551afa31282e8d48190b1c67449e93215567
Contents?: true
Size: 479 Bytes
Versions: 2
Compression:
Stored size: 479 Bytes
Contents
Spree::Image.class_eval do def to_jq_upload { 'name' => read_attribute(:attachment_file_name), 'size' => read_attribute(:attachment_file_size), 'thumbnail_url' => attachment.url(:mini, false), 'url' => attachment.url(:product, false), # TODO: find the way to generate edit and delete urls here #include Rails.application.routes.url_helpers doesn't work 'edit_url' => '', 'delete_url' => '' } end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
solidus_image_multi_upload-0.1.0 | app/models/image_decorator.rb |
spree_image_multi_upload-1.0.0 | app/models/image_decorator.rb |