@@ -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