Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- named_scope :gender_program_performance, lambda { |range| {
- if range.split('..')[0].downcase == 'men'
- {:conditions => ["SELECT mens_performance LIKE ?", range.split('..')[1]]}
- else
- {:conditions => ["SELECT program_performance LIKE ?", range.split('..')[1]]}
- end
- }}
Add Comment
Please, Sign In to add comment