app/controllers/api/v2/remote_edit_controller.rb
# Stores into a dedicated row of AppParameter the SQL DB-diff contents logged
# by the specified updater instance.
#
# The updater is supposed to respond to the SqlConvertable interface.
#
Stores into a dedicated row of AppParameter the SQL DB-diff contents logged
by the specified updater instance.

The updater is supposed to respond to the SqlConvertable interface.
Stores into a dedicated row of AppParameter the SQL DB - diff contents logged by the specified updater instance . The updater is supposed to respond to the SqlConvertable interface .
def serialize_into_app_parameters!( updater, edit_description, req_url )
    app_parameter = AppParameter.find_or_create_by!( code: 100000 + current_user.id )
    new_text = if app_parameter.free_text_1.to_s.empty?
      updater.sql_diff_text_log
    else
      "#{ app_parameter.free_text_1 }\r\n#{ updater.sql_diff_text_log }"
    end
    app_parameter.update( free_text_1: new_text )
    app_parameter.update(
      free_text_2: ( app_parameter.free_text_2.to_s.split(', ') << edit_description ).uniq.join(', ')
    )
    app_parameter.update(
      free_text_3: ( app_parameter.free_text_3.to_s.split("\r\n") + req_url.to_s.split("\r\n") ).uniq.join("\r\n")
    )
  end
def serialize_into_app_parameters! ( updater , edit_description , req_url ) app_parameter = AppParameter . find_or_create_by! ( code : 100000 + current_user . id ) new_text = if app_parameter . free_text_1 . to_s . empty? updater . sql_diff_text_log else "#{ app_parameter.free_text_1 }\r\n#{ updater.sql_diff_text_log }" end app_parameter . update ( free_text_1 : new_text ) app_parameter . update ( free_text_2 : ( app_parameter . free_text_2 . to_s . split ( ', ' ) << edit_description ) . uniq . join ( ', ' ) ) app_parameter . update ( free_text_3 : ( app_parameter . free_text_3 . to_s . split ( "\r\n" ) + req_url . to_s . split ( "\r\n" ) ) . uniq . join ( "\r\n" ) ) end
Stores into a dedicated row of AppParameter the SQL DB-diff contents logged
by the specified updater instance.
Stores into a dedicated row of AppParameter the SQL DB - diff contents logged by the specified updater instance .
# DEBUG #   puts "\r\nserialize_into_app_parameters for code: #{ 100000 + current_user.id }" # Store editing descriptions: # Store Request URL: # DEBUG #    app_parameter.reload #    puts "\r\n------------8<----------\r\n#{ app_parameter.free_text_1 }\r\n------------8<----------"
updater
<not_specific>
edit_description
<not_specific>
req_url
<not_specific>