Sha256: 6c41342922159261520ca28c87f2e4e9208395243c12401f694a49846026bfae
Contents?: true
Size: 282 Bytes
Versions: 2
Compression:
Stored size: 282 Bytes
Contents
module LatoMedia module Media::EntityHelpers # This function tells if the attachment exists. def exists? attachment.exists? end # This function tells if the attachment is an image. def image? attachment.content_type =~ /^image/ end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lato_media-2.1.2 | app/models/lato_media/media/entity_helpers.rb |
lato_media-2.1 | app/models/lato_media/media/entity_helpers.rb |