lib/date_time_text_field_helpers/instance_tag.rb
# Extracts field name with position as params key to find
# value user submitted for this field if any
Extracts field name with position as params key to find
value user submitted for this field if any
Extracts field name with position as params key to find value user submitted for this field if any
def extract_field_param_value(options)
      field_name = options[:name].scan(/\[(.*?)\]/).first.first
      param_value = nil
      if @template_object.params[@object_name] 
        param_value = @template_object.params[@object_name][field_name]
      end
      param_value
    end
def extract_field_param_value ( options ) field_name = options [ :name ] . scan ( / \[ (.*?) \] / ) . first . first param_value = nil if @template_object . params [ @object_name ] param_value = @template_object . params [ @object_name ] [ field_name ] end param_value end
Extracts field name with position as params key to find
value user submitted for this field if any
Extracts field name with position as params key to find value user submitted for this field if any
options
<not_specific>