Sha256: d29a7fb344be5c7e97162ef68bc710acc7c6f9f4dc718d38339e2efb051d6351
Contents?: true
Size: 440 Bytes
Versions: 12
Compression:
Stored size: 440 Bytes
Contents
class PagesWithPositionsDataset < Dataset::Base uses :home_page def load create_page "Documentation", :position => 2 create_page "Page A", :position => 1 create_page "Page B", :position => 3 create_page "Page C", :position => 4 create_page "Page Y", :position => 5 create_page "Page Z", :position => 6 end helpers do def order_map(coll) coll.map {|r| [r.position, r.title]} end end end
Version data entries
12 entries across 12 versions & 1 rubygems