Sha256: fe2beb23a239e2602fa62116b92066f76672bb425a082a6423dcfeaddcf6ad5c
Contents?: true
Size: 227 Bytes
Versions: 1
Compression:
Stored size: 227 Bytes
Contents
module Papercat class Image < ActiveRecord::Base mount_uploader :file, ImageUploader def location file.url end def as_json options = {} super(options.merge(methods: [:location])) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
papercat-0.0.2 | app/models/papercat/image.rb |