Class: Workarea::ApplicationController
Instance Method Summary
collapse
#apply_segments, #current_segments, has_segmented_content!, #mark_segmented_content, #override_segments=, reset_segmented_content, segmented_content?
#current_metrics, #current_referrer, #current_visit, #ensure_current_metrics, #update_tracking!
#cache_page, #http_caching?
Instance Method Details
#current_location ⇒ Object
26
27
28
|
# File 'app/controllers/workarea/application_controller.rb', line 26
def current_location
current_visit.geolocation
end
|
#default_url_options ⇒ Object
22
23
24
|
# File 'app/controllers/workarea/application_controller.rb', line 22
def default_url_options(*)
super.merge(host: Workarea.config.host)
end
|
#view_model_options ⇒ Object
30
31
32
|
# File 'app/controllers/workarea/application_controller.rb', line 30
def view_model_options
params.to_unsafe_h
end
|