end
def destroy
- @item = Scroll.edit(params[:id], @operators)
+ set_model
+ @item = @my_model_class.edit(params[:id], @operators)
respond_to do |format|
if @item.destroy_with_leafs
flash[:notice] = I18n.t('flash.notice.destroyed', :model => Scroll.model_name.human)