Sha256: 1bf0e1a4e9b55d9e3de5110985aef633f58691bff0076b51593b4fdc953f1fdf
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 KB
Contents
class PostPresenter < Carnival::BaseAdminPresenter field :id, actions: [:index, :show, :csv, :pdf], searchable: true, sortable: true, advanced_search: {operator: :equal} field :title, actions: [:index, :new, :edit, :show, :csv, :pdf], searchable: true, sortable: true, advanced_search: {operator: :like} field :cover, actions: [:new, :edit, :show], as: :admin_previewable_file field :text, actions: [:new, :edit, :show], as: :ckeditor field :status, actions: [:index, :new, :edit, :show, :csv, :pdf], searchable: true, sortable: true, advanced_search: {operator: :equal} field :tags, actions: [:new, :show, :edit], nested_form: true, nested_form_modes: [:associate] field :post_files, actions: [:new, :show, :edit], nested_form: true, nested_form_modes: [:new], nested_form_allow_destroy: true field :updated_at, actions: [:show, :csv, :pdf], sortable: true, advanced_search: {operator: :between} field :created_at, date_filter: true, actions: [:index, :show, :csv, :pdf], sortable: true, advanced_search: {operator: :between} action :new action :edit action :show action :destroy action :pdf action :csv # index_as :list # index_as :table index_as :grid end
Version data entries
4 entries across 4 versions & 1 rubygems