app/models/setting.rb
# if the sms credentials temp fields are set (and they match, which is checked above),
# copy the value to the real field
if the sms credentials temp fields are set (and they match, which is checked above),
copy the value to the real field
if the sms credentials temp fields are set ( and they match which is checked above ) copy the value to the real field
def save_sms_credentials
    self.twilio_auth_token = twilio_auth_token1 if twilio_auth_token1.present?
    self.frontlinecloud_api_key = frontlinecloud_api_key1 if frontlinecloud_api_key1.present?
    true
  end
def save_sms_credentials self . twilio_auth_token = twilio_auth_token1 if twilio_auth_token1 . present? self . frontlinecloud_api_key = frontlinecloud_api_key1 if frontlinecloud_api_key1 . present? true end
if the sms credentials temp fields are set (and they match, which is checked above),
copy the value to the real field
if the sms credentials temp fields are set ( and they match which is checked above ) copy the value to the real field