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: nested_form_helper.rb
    path of file: ./repos/fae/app/helpers/fae
    
    the code of the file until where you have to start completion: module Fae
  module NestedFormHelper

    def th_columns(attribute)
      if (attribute.is_a?(Hash) && attribute[:title])
        attribute = attribute[:title
    
    def th_columns(attribute)
      if (attribute.is_a?(Hash) && attribute[:title])
        attribute = attribute[:title]
        attribute_title = attribute
      else
        attribute = :modified if ['updated_at', 'modified_at'].include? attribute.to_s
        attribute_title = attribute.to_s.titleize
      end