From 46f511685c91486295a418547bb08c2aa5e49cfc Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 8 Aug 2016 18:17:28 +0200 Subject: revises more Lint/EndAlignment offenses --- actionview/lib/action_view/helpers/form_helper.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'actionview/lib/action_view') diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb index f470375988..7d574f0a14 100644 --- a/actionview/lib/action_view/helpers/form_helper.rb +++ b/actionview/lib/action_view/helpers/form_helper.rb @@ -468,9 +468,9 @@ module ActionView options[:url] ||= if options.key?(:format) polymorphic_path(record, format: options.delete(:format)) - else - polymorphic_path(record, {}) - end + else + polymorphic_path(record, {}) + end end private :apply_form_for_options! @@ -1574,12 +1574,12 @@ module ActionView record_name = if index "#{object_name}[#{index}][#{record_name}]" - elsif record_name.to_s.end_with?("[]") - record_name = record_name.to_s.sub(/(.*)\[\]$/, "[\\1][#{record_object.id}]") - "#{object_name}#{record_name}" - else - "#{object_name}[#{record_name}]" - end + elsif record_name.to_s.end_with?("[]") + record_name = record_name.to_s.sub(/(.*)\[\]$/, "[\\1][#{record_object.id}]") + "#{object_name}#{record_name}" + else + "#{object_name}[#{record_name}]" + end fields_options[:child_index] = index @template.fields_for(record_name, record_object, fields_options, &block) -- cgit v1.2.3