Sha256: c0a4e73905903a531e5169b1b92445a8b70c9a5e9ebf8cec037de872fdc7f099

Contents?: true

Size: 352 Bytes

Versions: 13

Compression:

Stored size: 352 Bytes

Contents

#encoding: utf-8
class HashListing < Listings::Base

  model do
    (1..30).map do |n|
      { :self => n, :next => n + 1 }
    end
  end

  paginates_per 10

  column :self
  column :next
  column 'dummy' do
    'This is a string'
  end
  column 'ugly chars' do
    'ñáéíóú'
  end
  column 'format' do
    format
  end

  export :csv, :xls

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
listings-0.1.15 spec/dummy/app/listings/hash_listing.rb
listings-0.1.14 spec/dummy/app/listings/hash_listing.rb
listings-0.1.13 spec/dummy/app/listings/hash_listing.rb
listings-0.1.12 spec/dummy/app/listings/hash_listing.rb
listings-0.1.11 spec/dummy/app/listings/hash_listing.rb
listings-0.1.10 spec/dummy/app/listings/hash_listing.rb
listings-0.1.8 spec/dummy/app/listings/hash_listing.rb
listings-0.1.7 spec/dummy/app/listings/hash_listing.rb
listings-0.1.6 spec/dummy/app/listings/hash_listing.rb
listings-0.1.5 spec/dummy/app/listings/hash_listing.rb
listings-0.1.4 spec/dummy/app/listings/hash_listing.rb
listings-0.1.0 spec/dummy/app/listings/hash_listing.rb
listings-0.0.3 spec/dummy/app/listings/hash_listing.rb