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

Version Path
trusty-festivity-extension-2.6.3 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.6.2 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.6.1 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.6 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.19 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.18 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.17 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.16 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.15 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.14 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.13 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.12 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.11 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.10 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.9 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.8 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.7 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.6 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.5 lib/festivity/admin/assets_helper.rb
trusty-festivity-extension-2.5.4 lib/festivity/admin/assets_helper.rb