Sha256: e45728c19759226b8a7a8df65963383ce0626a9d3c178d5c27d7ba8333f82cfc
Contents?: true
Size: 342 Bytes
Versions: 23
Compression:
Stored size: 342 Bytes
Contents
module ImagensHelper def carrier_wave_uploader?(model, attribute) model.new.send(attribute).class.ancestors.include?(CarrierWave::Uploader::Base) end def possui_url?(record, attribute) record.send(attribute).respond_to?(:url) end def deve_renderizar_imagem?(opts) opts.has_key?(:render) && !!opts[:render] end end
Version data entries
23 entries across 23 versions & 1 rubygems