Sha256: a7b2c89ad8e0d80ded9bbec2be4c90767257002805d79fc91438c58ed6cba008

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 Bytes

Contents

# Dashboard Classifieds
class EffectiveClassifiedsDatatable < Effective::Datatable
  datatable do
    order :start_on

    col :start_on, as: :date, label: 'Starts'
    col :end_on, as: :date, label: 'Ends'

    col :title
    col :organization
    col :location

    col :body, visible: false
    col :website, visible: false
    col :email, visible: false
    col :phone, visible: false

    actions_col(edit: false)
  end

  collection do
    Effective::Classified.classifieds(user: current_user)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_classifieds-0.0.3 app/datatables/effective_classifieds_datatable.rb
effective_classifieds-0.0.2 app/datatables/effective_classifieds_datatable.rb