Sha256: da7ad1f9ceae97ac4e1b89aa2ed5374a5e7a85ad28b7e0f9489e549e0a23eae1

Contents?: true

Size: 778 Bytes

Versions: 8

Compression:

Stored size: 778 Bytes

Contents

if Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
  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

8 entries across 8 versions & 1 rubygems

Version Path
effective_email_templates-0.5.1 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.5.0 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.4.6 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.4.5 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.4.4 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.4.3 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.4.2 app/models/effective/datatables/email_templates.rb
effective_email_templates-0.4.1 app/models/effective/datatables/email_templates.rb