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
25
26
27
|
# File 'app/controllers/workarea/application_controller.rb', line 25
def current_location
current_visit.geolocation
end
|
#default_url_options ⇒ Object
21
22
23
|
# File 'app/controllers/workarea/application_controller.rb', line 21
def default_url_options(*)
super.merge(host: Workarea.config.host)
end
|
#view_model_options ⇒ Object
29
30
31
|
# File 'app/controllers/workarea/application_controller.rb', line 29
def view_model_options
params.to_unsafe_h
end
|