Sha256: 498b9d0f1c703dfa2178d45ebedf91ba4c3806fef8b8b08b9a8a5d7257b3b5a9
Contents?: true
Size: 617 Bytes
Versions: 5
Compression:
Stored size: 617 Bytes
Contents
module Portfolio module SiteItemsHelper def site_item_image site_item, style if site_item.default_image image_tag(site_item.default_image.image(style)) else image_tag("portfolio/#{style}/missing.png") end end def ajax_checkbox item, field check_box_tag field, item.id, item[field], class: 'ajax_checkbox', data: { path: polymorphic_path([:admin, @site, item]), field: field } end def item_path item portfolio.send "show_portfolio_#{item.class.human_name}_path", item.site.key, item.path_title, item.id end end end
Version data entries
5 entries across 5 versions & 1 rubygems