Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def whatevermethod
- @unassigned_work_orders = WorkOrder.find(:all, :conditions => ["writer_id = null"], :order =>["created_at DESC"], :group => ["writer_id"])
- @work_orders = WorkOrder.find(:all,:conditions => ["writer_id <> null"], :order =>["created_at DESC"])
Add Comment
Please, Sign In to add comment