Title / Description
Code # Returns tfr_codes # for each node that listing has # for each poly # if poly belongs to tfr_codes # then results include the poly-polyable def tfr_codes results = [] nodes.each do |node| node.polies.each do |poly| if poly.polyable.class.to_s == "tfr_code".camelize results << poly.polyable end end end results.uniq! return results end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code