app/controllers/workings/service_offerings_controller.rb
# encoding: utf-8
# frozen_string_literal: true
module Workings
class ServiceOfferingsController < ApplicationController
include ControllerHelpers
# Tracking
after_action :track_discovers_service, only: :show, if: :trackable?
# GET /workings/1/service_offerings/1
def show
load_working
load_service_offering
load_public_service
build_contact
end
private
def track_discovers_service
tracker.(
:jeunes,
:discovers_service,
working: @working,
servive_offering: @service_offering,
public_service: @public_service
)
end
end
end