Sha256: 71b1fe4ffd163af1984b093a2d51ee502a969ea81f2e01b8826ac6e81aebf4c4

Contents?: true

Size: 809 Bytes

Versions: 24

Compression:

Stored size: 809 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
      Volt.current_app.url
    end

    def url_for(params)
      Volt.current_app.url.url_for(params)
    end

    def url_with(params)
      Volt.current_app.url.url_with(params)
    end

    def store
      Volt.current_app.store
    end

    def page
      Volt.current_app.page
    end

    def flash
      Volt.current_app.flash
    end

    def params
      Volt.current_app.params
    end

    def local_store
      Volt.current_app.local_store
    end

    def cookies
      Volt.current_app.cookies
    end

    def channel
      Volt.current_app.channel
    end

    def tasks
      Volt.current_app.tasks
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 lib/volt/controllers/collection_helpers.rb
volt-0.9.7.pre7 lib/volt/controllers/collection_helpers.rb
volt-0.9.7.pre6 lib/volt/controllers/collection_helpers.rb
volt-0.9.7.pre5 lib/volt/controllers/collection_helpers.rb
volt-0.9.7.pre3 lib/volt/controllers/collection_helpers.rb
volt-0.9.7.pre2 lib/volt/controllers/collection_helpers.rb
volt-0.9.6 lib/volt/controllers/collection_helpers.rb
volt-0.9.6.pre3 lib/volt/controllers/collection_helpers.rb
volt-0.9.6.pre2 lib/volt/controllers/collection_helpers.rb
volt-0.9.6.pre1 lib/volt/controllers/collection_helpers.rb
volt-0.9.5 lib/volt/controllers/collection_helpers.rb
volt-0.9.5.pre12 lib/volt/controllers/collection_helpers.rb
volt-0.9.5.pre11 lib/volt/controllers/collection_helpers.rb
volt-0.9.5.pre9 lib/volt/controllers/collection_helpers.rb
volt-0.9.5.pre8 lib/volt/controllers/collection_helpers.rb
volt-0.9.5.pre7 lib/volt/controllers/collection_helpers.rb
volt-0.9.5.pre6 lib/volt/controllers/collection_helpers.rb
volt-0.9.5.pre5 lib/volt/controllers/collection_helpers.rb
volt-0.9.5.pre4 lib/volt/controllers/collection_helpers.rb
volt-0.9.5.pre3 lib/volt/controllers/collection_helpers.rb