Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def techniques
- # Find all techniques that have been applied to this plant
- full_list = Technique.find(:all, :params => {:plant_id => self.id})
- techniques = Array.new
- # Match them up with the containing classes in rails
- if (Duval.available?(full_list))
- techniques << "Duval's Triangle"
- end
- return techniques
- end
Add Comment
Please, Sign In to add comment