Class: Workarea::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
CurrentSegments, CurrentTracking, HttpCaching, I18n::DefaultUrlOptions
Defined in:
app/controllers/workarea/application_controller.rb

Instance Method Summary collapse

Methods included from CurrentSegments

#apply_segments, #current_segments, has_segmented_content!, #mark_segmented_content, #override_segments=, reset_segmented_content, segmented_content?

Methods included from CurrentTracking

#current_metrics, #current_referrer, #current_visit, #ensure_current_metrics, #update_tracking!

Methods included from HttpCaching

#cache_page, #http_caching?

Instance Method Details

#current_locationObject



25
26
27
# File 'app/controllers/workarea/application_controller.rb', line 25

def current_location
  current_visit.geolocation
end

#default_url_optionsObject



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_optionsObject



29
30
31
# File 'app/controllers/workarea/application_controller.rb', line 29

def view_model_options
  params.to_unsafe_h
end