Sha256: 85cce5285fce8f35809791029b32e315ae79fd924f668ef11682c717ca7e3c3d
Contents?: true
Size: 960 Bytes
Versions: 5
Compression:
Stored size: 960 Bytes
Contents
# Postmark: Inactive Recipients module Admin class ReportInactiveRecipientsDatatable < Effective::Datatable datatable do col :id, visible: false col(:to_s, label: 'User', sql_column: true, partial: 'admin/users/col') .search do |collection, term| collection.where(id: effective_resource.search_any(term)) end.sort do |collection, direction| collection.order(first_name: direction) end col :email, visible: false col :first_name, visible: false col :last_name, visible: false col :postmark_error col :postmark_error_at actions_col(actions: []) do |user| dropdown_link_to('Reactivate', effective_postmark.postmark_reactivate_admin_postmark_path(user), remote: true, method: :post) dropdown_link_to('Edit', "/admin/users/#{user.to_param}/edit") end end collection do current_user.class.postmark_inactive_recipients end end end
Version data entries
5 entries across 5 versions & 1 rubygems