From 077c55f7e85b6a0a0db54a981ef6810af854a5ae Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Thu, 17 Aug 2023 21:03:16 +0300 Subject: [PATCH] fix rubocop --- app/views/personalization_settings/_logo_placeholder.html.erb | 2 +- app/views/personalization_settings/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/personalization_settings/_logo_placeholder.html.erb b/app/views/personalization_settings/_logo_placeholder.html.erb index 1ba3b631..b428f280 100644 --- a/app/views/personalization_settings/_logo_placeholder.html.erb +++ b/app/views/personalization_settings/_logo_placeholder.html.erb @@ -5,7 +5,7 @@

Display your company name and logo when signing documents.
- Learn More + ">Learn More

diff --git a/app/views/personalization_settings/show.html.erb b/app/views/personalization_settings/show.html.erb index bfb51a41..4af1a826 100644 --- a/app/views/personalization_settings/show.html.erb +++ b/app/views/personalization_settings/show.html.erb @@ -4,7 +4,7 @@

Signature Request Email

<%= form_for AccountConfigs.find_or_initialize_for_key(current_account, AccountConfig::SUBMITTER_INVITATION_EMAIL_KEY), url: settings_personalization_path, method: :post, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %> <%= f.hidden_field :key %> - <%= f.fields_for :value, OpenStruct.new(f.object.value) do |ff| %> + <%= f.fields_for :value, Struct.new(:subject, :body).new(*f.object.value.values_at('subject', 'body')) do |ff| %>
<%= ff.label :subject, class: 'label' %> <%= ff.text_field :subject, required: true, class: 'base-input' %>