Sha256: 41b6fda4cdc09dd4a7b3e6e5110a32f216b8f31db885fc1ecc28fc6c176baab4

Contents?: true

Size: 654 Bytes

Versions: 4

Compression:

Stored size: 654 Bytes

Contents

class TagPresenter < Carnival::BaseAdminPresenter
  field :id,
    actions: [:index, :show, :csv, :pdf],
    searchable: true,
    sortable: true,
    advanced_search: {operator: :equal}
  field :name,
    actions: [:index, :new, :edit, :show, :csv, :pdf],
    searchable: true,
    sortable: true,
    advanced_search: {operator: :like}
  field :updated_at,
    actions: [:index, :show, :csv, :pdf],
    sortable: true,
    advanced_search: {operator: :between}
  field :created_at,
    actions: [:index, :show, :csv, :pdf],
    sortable: true,
    advanced_search: {operator: :between}

  action :new
  action :edit
  action :show
  action :destroy
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
carnival-0.1.3 test/carnival-sample-application/app/presenters/tag_presenter.rb
carnival-0.1.2 test/carnival-sample-application/app/presenters/tag_presenter.rb
carnival-0.1.1 test/carnival-sample-application/app/presenters/tag_presenter.rb
carnival-0.1.0 test/carnival-sample-application/app/presenters/tag_presenter.rb