Sha256: 650a130d16bbfa37526fd7625c82d0e2ecb5d2fca13a8bfc4b89180c624a5c87

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

class FilteredPostsListing < Listings::Base

  model Post

  paginates_per 10

  # layout filters: :top

  scope :all, default: true
  scope :even
  scope :odd

  filter :author
  filter :category


  column :id
  column :title, searchable: true
  column :author
  column :category
  column do |post|
    link_to 'Editar', edit_post_path(post)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
listings-0.1.6 spec/dummy/app/listings/filtered_posts_listing.rb
listings-0.1.5 spec/dummy/app/listings/filtered_posts_listing.rb
listings-0.1.4 spec/dummy/app/listings/filtered_posts_listing.rb