daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top