Sha256: b5cb3b661265c375a408076eb738f6b8462da1f9177d8e1ef17d156b40837fa7

Contents?: true

Size: 451 Bytes

Versions: 7

Compression:

Stored size: 451 Bytes

Contents

class EffectiveQbSyncDatatable < Effective::Datatable
  datatable do
    order :created_at, :desc

    col :created_at
    col :state

    val :num_orders, visible: false do |qb_ticket|
      qb_ticket.qb_requests.length
    end

    col :orders

    actions_col do |qb_ticket|
      dropdown_link_to 'Show', effective_qb_sync.admin_qb_sync_path(qb_ticket)
    end

  end

  collection do
    Effective::QbTicket.deep.includes(:orders).all
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_qb_sync-1.5.0 app/datatables/effective_qb_sync_datatable.rb
effective_qb_sync-1.4.0 app/datatables/effective_qb_sync_datatable.rb
effective_qb_sync-1.3.8 app/datatables/effective_qb_sync_datatable.rb
effective_qb_sync-1.3.7 app/datatables/effective_qb_sync_datatable.rb
effective_qb_sync-1.3.6 app/datatables/effective_qb_sync_datatable.rb
effective_qb_sync-1.3.5 app/datatables/effective_qb_sync_datatable.rb
effective_qb_sync-1.3.4 app/datatables/effective_qb_sync_datatable.rb