Sha256: b8459d94f4c4645abb15d3ebc1be005915f2ce92b1b4354337481ba03c340a42

Contents?: true

Size: 407 Bytes

Versions: 9

Compression:

Stored size: 407 Bytes

Contents

module Ecm::Downloads::DownloadCategoryHelper
  def render_download_category(download_category_name, options = {})
    download_category = ::Ecm::Downloads::DownloadCategory.where(:name => download_category_name).first
    if download_category.nil?
      I18n.t('ecm.downloads.download_category.messages.not_found', :name => download_category_name)
    else
      render download_category
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ecm_downloads-0.0.11.pre app/helpers/ecm/downloads/download_category_helper.rb
ecm_downloads-0.0.10.pre app/helpers/ecm/downloads/download_category_helper.rb
ecm_downloads-0.0.8.pre app/helpers/ecm/downloads/download_category_helper.rb
ecm_downloads-0.0.7.pre app/helpers/ecm/downloads/download_category_helper.rb
ecm_downloads-0.0.6.pre app/helpers/ecm/downloads/download_category_helper.rb
ecm_downloads-0.0.5.pre app/helpers/ecm/downloads/download_category_helper.rb
ecm_downloads-0.0.4 app/helpers/ecm/downloads/download_category_helper.rb
ecm_downloads-0.0.3 app/helpers/ecm/downloads/download_category_helper.rb
ecm_downloads-0.0.2 app/helpers/ecm/downloads/download_category_helper.rb