Guest User

Untitled

a guest
Apr 26th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def destroy
  2. if params[:ids]
  3. @models = Model.find(:all, :conditions => { :id => params[:ids] })
  4. @models.each { |m| m.destroy }
  5. else
  6. @model = Tracker.find(params[:id])
  7. @model.destroy
  8. end
  9. end
Add Comment
Please, Sign In to add comment