Skip to content

Commit adbf4ea

Browse files
committed
Rubocop fixes
1 parent ba4aed0 commit adbf4ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/controllers/better_together/navigation_items_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def edit
3232
authorize @navigation_item
3333
end
3434

35-
def create
35+
def create # rubocop:todo Metrics/AbcSize, Metrics/MethodLength
3636
@navigation_item = new_navigation_item
3737
@navigation_item.assign_attributes(navigation_item_params)
3838
authorize @navigation_item
@@ -41,15 +41,15 @@ def create
4141
flash.now[:notice] = 'Navigation item was successfully created.'
4242
format.html do
4343
redirect_to @navigation_area, only_path: true,
44-
notice: 'Navigation item was successfully created.'
44+
notice: 'Navigation item was successfully created.'
4545
end
4646
format.turbo_stream { render :create }
4747
else
4848
format.html { render :new, status: :unprocessable_entity }
4949
format.turbo_stream do
5050
render turbo_stream: [
5151
turbo_stream.update('form_errors', partial: 'layouts/better_together/errors',
52-
locals: { object: @navigation_item }),
52+
locals: { object: @navigation_item }),
5353
turbo_stream.update('navigation_item_form', partial: 'better_together/navigation_items/form',
5454
locals: { navigation_item: @navigation_item,
5555
navigation_area: @navigation_area })

0 commit comments

Comments
 (0)