Sha256: 3087df99f2c71ad6fd3838d82df5a55120520ab4031122236b84676505ed51ed
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
module Tandem module ContentsHelper def image_content_url(image_content, format = :original) image_content.image.present? ? image_content.image.resource.url(format) : 'tandem/blank_image.jpg' end def image_content_tag(image_content, options = {}, format = :original) image_tag image_content_url(image_content, format), options end def text_content_text_area_options(editor = 'plain', options = {}) options.tap do |options| options[:class] = 'wymeditor' if editor == 'wysiwyg' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems