Sha256: 4e9caf5e0d178fdab0682ac9efdc4d7ae00d441f9592a62b5994cff285e0c9a3
Contents?: true
Size: 887 Bytes
Versions: 23
Compression:
Stored size: 887 Bytes
Contents
module Admin class EffectiveRingsDatatable < Effective::Datatable filters do scope :ready_to_issue scope :issued scope :all end datatable do order :updated_at col :updated_at, visible: false col :created_at, visible: false col :id, visible: false col :created_at, as: :date col :owner, search: :string col(:first_name) { |ring| ring.owner.first_name } col(:last_name) { |ring| ring.owner.last_name } col(:email) { |ring| ring.owner.email } col(:phone) { |ring| ring.owner.phone } col :member_number, label: 'Member #' do |ring| ring.owner.try(:membership).try(:number) end col :shipping_address, label: 'Address' col :size col :metal col :issued_at actions_col end collection do Effective::Ring.deep.all end end end
Version data entries
23 entries across 23 versions & 1 rubygems