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: actions_controller.rb
    path of file: ./repos/forest-rails/app/controllers/forest_liana
    
    the code of the file until where you have to start completion: module ForestLiana
  class ActionsController < ForestLiana::ApplicationController

    def get_smart_action_hook_request
      if params[:d
    
    def get_smart_action_change_ctx(fields, field_changed)
      found_field_changed = fields.find{|field| field[:field] == field_changed}
      fields = fields.map do |field|
        field = field.permit!.to_h.symbolize_keys
        ForestLiana::WidgetsHelper.set_field_widget(field)
        field
      end
      {:field_changed => found_field_changed, :fields => fields, :params => params, :user => forest_user}
    end