Sha256: e31bbed977f6a50362b99bd52975fdf728fe05bdbc506ecba844ecb9ed077ee8
Contents?: true
Size: 614 Bytes
Versions: 6
Compression:
Stored size: 614 Bytes
Contents
module Wafflemix class Asset < ActiveRecord::Base image_accessor :asset attr_accessible :asset_name, :asset_mime_type, :asset_uid, :asset_size, :asset_origin, :asset attr_accessor :path #one convenient method to pass jq_upload the necessary information def to_jq_upload { "name" => read_attribute(:asset_name), "size" => asset_size, "url" => asset_url, "thumbnail_url" => asset.thumb('80x80#').url, "delete_url" => Wafflemix::Engine::routes.url_helpers.admin_asset_path(:id => id), "delete_type" => "DELETE" } end end end
Version data entries
6 entries across 6 versions & 1 rubygems