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



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

def current_location
  current_visit.geolocation
end

#default_url_optionsObject



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_optionsObject



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

def view_model_options
  params.to_unsafe_h
end