Advertisement
maxx573

Untitled

May 1st, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.13 KB | None | 0 0
  1. def self.one_per_runner(scope_chain = self) # TODO: turn this into a scope / single query
  2.   scope_chain.uniq{|r| r.runner }
  3. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement