Guest User

Untitled

a guest
Aug 17th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. named_scope :gender_program_performance, lambda { |range| {
  2. if range.split('..')[0].downcase == 'men'
  3. {:conditions => ["SELECT mens_performance LIKE ?", range.split('..')[1]]}
  4. else
  5. {:conditions => ["SELECT program_performance LIKE ?", range.split('..')[1]]}
  6. end
  7. }}
Add Comment
Please, Sign In to add comment