daily pastebin goal


a guest Apr 17th, 2018 55 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand