You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: scenario_decorator.rb
    path of file: ./repos/ekylibre/app/decorators
    
    the code of the file until where you have to start completion: # frozen_string_literal: tr
    
  def activities_with_area
    scenario_activities.map do |scenario_activity|
      area = scenario_activity.decorate.total_area.in(:hectare).l(precision: 1)
      "#{scenario_activity.activity.name} (#{area})"
    end.join(', ')
  end

  def total_area
    activities_id = scenario_activities.pluck(:id)
    plots = ScenarioActivity::Plot.where(planning_scenario_activity_id: activities_id)
    plots.sum(:area)
  end
end