Sha256: 49e7cfda71eb9b3ac76bab8f2aa1301f00137a5d6053baecbc847094690ba7f3

Contents?: true

Size: 319 Bytes

Versions: 9

Compression:

Stored size: 319 Bytes

Contents

module Ecm::Downloads::DownloadHelper
  def render_download(download_name, options = {})
    download = ::Ecm::Downloads::Download.where(:name => download_name).first
    if download.nil?
      I18n.t('ecm.downloads.download.messages.not_found', :name => download_name)
    else
      render download
    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_helper.rb
ecm_downloads-0.0.10.pre app/helpers/ecm/downloads/download_helper.rb
ecm_downloads-0.0.8.pre app/helpers/ecm/downloads/download_helper.rb
ecm_downloads-0.0.7.pre app/helpers/ecm/downloads/download_helper.rb
ecm_downloads-0.0.6.pre app/helpers/ecm/downloads/download_helper.rb
ecm_downloads-0.0.5.pre app/helpers/ecm/downloads/download_helper.rb
ecm_downloads-0.0.4 app/helpers/ecm/downloads/download_helper.rb
ecm_downloads-0.0.3 app/helpers/ecm/downloads/download_helper.rb
ecm_downloads-0.0.2 app/helpers/ecm/downloads/download_helper.rb