app/models/taxon_user_classification_filter.rb
# We're not inheriting from Delegator here, because we want to be more
# surgical about what gets called on TaxonConcept... but this sets up *almost*
# everything to go to the TC (without maintaining a full list). TODO - we
# might want to stop doing this, so that TaxonPage (or the other classes that
# rely on it) has a nice, mangageable interface to all of the information we
# might want about a TaxonConcept.
We're not inheriting from Delegator here, because we want to be more
surgical about what gets called on TaxonConcept... but this sets up *almost
everything to go to the TC (without maintaining a full list). TODO - we
might want to stop doing this, so that TaxonPage (or the other classes that
rely on it) has a nice, mangageable interface to all of the information we
might want about a TaxonConcept.
We ' re not inheriting from Delegator here because we want to be more surgical about what gets called on TaxonConcept ... but this sets up * almost everything to go to the TC ( without maintaining a full list ) . TODO - we might want to stop doing this so that TaxonPage ( or the other classes that rely on it ) has a nice mangageable interface to all of the information we might want about a TaxonConcept .
def method_missing(method, *args, &block)
    super unless taxon_concept.respond_to?(method)
    class_eval { delegate method, to: :taxon_concept } 
    taxon_concept.send(method, *args, &block)
  end
def method_missing ( method , * args , & block ) super unless taxon_concept . respond_to? ( method ) class_eval { delegate method , to : :taxon_concept } taxon_concept . send ( method , * args , & block ) end
We're not inheriting from Delegator here, because we want to be more
surgical about what gets called on TaxonConcept... but this sets up *almost
everything to go to the TC (without maintaining a full list).
We ' re not inheriting from Delegator here because we want to be more surgical about what gets called on TaxonConcept ... but this sets up * almost everything to go to the TC ( without maintaining a full list ) .
# Won't use method_missing next time!
method
<not_specific>
args
<not_specific>
block
<not_specific>