Sha256: df7c186b39fac4d7c26bc634ff77515d268f15a45c313018d3754d4c0f2442ca

Contents?: true

Size: 735 Bytes

Versions: 5

Compression:

Stored size: 735 Bytes

Contents

if defined?(EffectiveDatatables)
  module Effective
    module Datatables
      class EmailTemplates < Effective::Datatable
        datatable do
          default_order :subject, :asc

          table_column :id, visible: false
          table_column :slug
          table_column :subject
          table_column :from
          table_column :cc, sortable: false, visible: false, label: 'CC'
          table_column :bcc, sortable: false, visible: false, label: 'BCC'
          table_column :body, sortable: false, visible: false
          table_column :actions, sortable: false, partial: '/admin/email_templates/actions'
        end

        def collection
          Effective::EmailTemplate.all
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_email_templates-0.4.0 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.3.5 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.3.4 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.3.3 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.3.1 app/models/effective/datatables/email_templates.rb