module VisualConditionBuilder module ApplicationHelper def build_conditions(dictionary, *args) dictionary_name = get_dictionary_name(dictionary) container_name = "#{dictionary_name}_condition_container" hArgs = (args ||= []).reduce(Hash.new, :merge) hArgs = normalize_placeholder_label(hArgs) builder_options = { dictionary: ObrigacaoDictionary.dictionary }.deep_merge(hArgs) capture do concat(content_tag(:div, nil, id: container_name)) concat(javascript_tag(<