Sha256: 8cfbf64817c68d72c24ad16749a5f6b644b09d710b66b104130deb11bc9e4990

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 Bytes

Contents

module Ecm::Downloads
  class DownloadCategoryDecorator < Draper::Decorator
    # delegate :root?, :parent_id, :persisted?
    delegate_all

    def ecm_downloads_downloads_count_label
      h.content_tag(:span, ecm_downloads_downloads_count, class: 'badge')
    end

    def locale_label
      h.content_tag(:span, locale, class: 'label label-default')
    end

    def tree_name
      name
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecm_downloads2-1.1.0 app/decorators/ecm/downloads/download_category_decorator.rb