app/controllers/katalyst/navigation/items_controller.rb in katalyst-navigation-1.3.0 vs app/controllers/katalyst/navigation/items_controller.rb in katalyst-navigation-1.3.1
- old
+ new
@@ -8,20 +8,20 @@
def new
render locals: { item: @menu.items.build(type: new_item_params) }
end
+ def edit
+ render locals: { item: @item }
+ end
+
def create
item = @menu.items.build(item_params)
if item.save
render :update, locals: { item: item, previous: @menu.items.build(type: item.type) }
else
render :new, status: :unprocessable_entity, locals: { item: item }
end
- end
-
- def edit
- render locals: { item: @item }
end
def update
@item.attributes = item_params