Sha256: 6b94dbe6d0b530935f018f2a95692f472264b05d45e623062d6265abab724073
Contents?: true
Size: 572 Bytes
Versions: 17
Compression:
Stored size: 572 Bytes
Contents
module EffectiveEmailTemplatesHelper def datatable_of(description_of_objects, datatable) if datatable.nil? content_tag(:p, "Please use Effective Datatables gem") elsif datatable.collection.length > 0 render_datatable(datatable) else content_tag(:p, "There are no email templates") end end def email_template_form_url( email_template ) if email_template.new_record? effective_email_templates.admin_email_templates_path else effective_email_templates.admin_email_template_path( email_template ) end end end
Version data entries
17 entries across 17 versions & 1 rubygems