Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def mycenter
- @user = current_user # hole den aktuellen nutzer
- @bpms = @user.bpms #dirty, da auch Hauptprozesse drin sind
- for bpm in @bpms
- if !bpm.parent #wenn hauptprozess
- @bpms.delete(bpm) #lösche ihn aus der anzuzeigenden Liste
- end
- end
- @tasks = @user.tasks # nimm dir alle tasks
- respond_to do |format|
- format.html {}
- end
- end
Add Comment
Please, Sign In to add comment