Sha256: d25669a0e6ba9c34a411d056465c34e841b4a4745d68c9d8e015588d380eb466

Contents?: true

Size: 562 Bytes

Versions: 6

Compression:

Stored size: 562 Bytes

Contents

unless Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
  class EffectiveEmailTemplatesDatatable < Effective::Datatable
    datatable do
      order :subject, :asc

      col :id, visible: false
      col :slug
      col :subject
      col :from
      col :cc, visible: false, label: 'CC'
      col :bcc, visible: false, label: 'BCC'
      col :body, visible: false

      actions_col partial: '/admin/email_templates/actions', partial_as: 'email_template'
    end

    collection do
      Effective::EmailTemplate.all
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_email_templates-0.5.1 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-0.5.0 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-0.4.6 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-0.4.5 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-0.4.4 app/datatables/effective_email_templates_datatable.rb
effective_email_templates-0.4.3 app/datatables/effective_email_templates_datatable.rb