Module: Volt::CollectionHelpers

Included in:
ModelController, Task
Defined in:
lib/volt/controllers/collection_helpers.rb

Instance Method Summary collapse

Instance Method Details

#channelObject



41
42
43
# File 'lib/volt/controllers/collection_helpers.rb', line 41

def channel
  Volt.current_app.channel
end

#cookiesObject



37
38
39
# File 'lib/volt/controllers/collection_helpers.rb', line 37

def cookies
  Volt.current_app.cookies
end

#flashObject



25
26
27
# File 'lib/volt/controllers/collection_helpers.rb', line 25

def flash
  Volt.current_app.flash
end

#local_storeObject



33
34
35
# File 'lib/volt/controllers/collection_helpers.rb', line 33

def local_store
  Volt.current_app.local_store
end

#pageObject



21
22
23
# File 'lib/volt/controllers/collection_helpers.rb', line 21

def page
  Volt.current_app.page
end

#paramsObject



29
30
31
# File 'lib/volt/controllers/collection_helpers.rb', line 29

def params
  Volt.current_app.params
end

#storeObject



17
18
19
# File 'lib/volt/controllers/collection_helpers.rb', line 17

def store
  Volt.current_app.store
end

#tasksObject



45
46
47
# File 'lib/volt/controllers/collection_helpers.rb', line 45

def tasks
  Volt.current_app.tasks
end

#urlObject



5
6
7
# File 'lib/volt/controllers/collection_helpers.rb', line 5

def url
  Volt.current_app.url
end

#url_for(params) ⇒ Object



9
10
11
# File 'lib/volt/controllers/collection_helpers.rb', line 9

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

#url_with(params) ⇒ Object



13
14
15
# File 'lib/volt/controllers/collection_helpers.rb', line 13

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