Fix bugs for shift_to and change items.rake for the missing position in db
This commit is contained in:
1 parent
6a443f0976
commit
17b486f9e9
3 files changed
+20
-1
No files matched your search
@@ -17,6 +17,8 @@ class Admin::ItemsController < ApplicationController
|
||||
end
|
||||
|
||||
def update_position
|
||||
item = Item.find(params[:id])
|
||||
item.shift_to(params[:parent_id], params[:position])
|
||||
render :nothing => true
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user