Sha256: e6a418718944bb3d8b52403014f643c217311a2d6497291cdc03f4c90b6cd5e4

Contents?: true

Size: 345 Bytes

Versions: 8

Compression:

Stored size: 345 Bytes

Contents

# Collection helpers provide methods to access methods of page directly.
# @page is expected to be defined and a Volt::Page
module Volt
  module CollectionHelpers

    def url_for(params)
      @page.url.url_for(params)
    end

    def url_with(params)
      @page.url.url_with(params)
    end

    def store
      @page.store
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
volt-0.9.4.pre3 lib/volt/controllers/collection_helpers.rb
volt-0.9.4.pre2 lib/volt/controllers/collection_helpers.rb
volt-0.9.4.pre1 lib/volt/controllers/collection_helpers.rb
volt-0.9.3 lib/volt/controllers/collection_helpers.rb
volt-0.9.3.pre6 lib/volt/controllers/collection_helpers.rb
volt-0.9.3.pre5 lib/volt/controllers/collection_helpers.rb
volt-0.9.3.pre4 lib/volt/controllers/collection_helpers.rb
volt-0.9.3.pre3 lib/volt/controllers/collection_helpers.rb