Sha256: e9e7690c28d815965fa4534efdcf176ff5db19b6ad437336a5111a00f6f4eb1f
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
module RailsAdminUploader module Asset extend ActiveSupport::Concern def as_ra_json { id: id, filename: File.basename(image.path), size: image_file_size, url: image.url, thumb_url: image.url(:thumb), ra_token: ra_token, name: respond_to?(:name) ? name : nil, sort: respond_to?(:sort) ? sort : nil, enabled: respond_to?(:enabled) ? enabled : nil } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_uploader-1.0.0 | lib/rails_admin_uploader/asset.rb |