Sha256: 7b54dd2c61f1528dfc6cd4d159089c0733d8b2b82f3db2619b6ed12c20e5ad22
Contents?: true
Size: 385 Bytes
Versions: 75
Compression:
Stored size: 385 Bytes
Contents
module Festivity module Admin module AssetsHelper def page_image_url(title) image = assets.find_by_title(title) if assets.size > 0 image.thumbnail(:normal) unless image.nil? end def page_image_url_from_all_assets title image = Asset.find_by_title(title) image.thumbnail(:normal) unless image.blank? end end end end
Version data entries
75 entries across 75 versions & 1 rubygems