lib/pipe_rocket/entity.rb
def transform_field_name(key, name)
      hash = ::CUSTOM_FIELD_NAMES
      class_name = self.class.name.demodulize.underscore.to_sym
      return name if hash.nil? || hash[class_name].nil? || hash[class_name][key.to_sym].nil?
      hash[class_name][key.to_sym]
    end
# Override custom field name if it present in CUSTOM_FIELD_NAMES
Override custom field name if it present in CUSTOM_FIELD_NAMES
Override custom field name if it present in CUSTOM_FIELD_NAMES
def transform_field_name(key, name)
      hash = ::CUSTOM_FIELD_NAMES
      class_name = self.class.name.demodulize.underscore.to_sym
      return name if hash.nil? || hash[class_name].nil? || hash[class_name][key.to_sym].nil?
      hash[class_name][key.to_sym]
    end
def transform_field_name ( key , name ) hash = :: CUSTOM_FIELD_NAMES class_name = self . class . name . demodulize . underscore . to_sym return name if hash . nil? || hash [ class_name ] . nil? || hash [ class_name ] [ key . to_sym ] . nil? hash [ class_name ] [ key . to_sym ] end
Override custom field name if it present in CUSTOM_FIELD_NAMES
Override custom field name if it present in CUSTOM_FIELD_NAMES
key
name