Guest User

Untitled

a guest
Apr 17th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def techniques
  2. # Find all techniques that have been applied to this plant
  3. full_list = Technique.find(:all, :params => {:plant_id => self.id})
  4. techniques = Array.new
  5. # Match them up with the containing classes in rails
  6. if (Duval.available?(full_list))
  7. techniques << "Duval's Triangle"
  8. end
  9. return techniques
  10. end
Add Comment
Please, Sign In to add comment