app/models/taxon_concept.rb
# TODO - this belongs in the same class as #overview_text_for_user. ...But be aware this is also used in TaxonDetails.
this belongs in the same class as #overview_text_for_user. ...But be aware this is also used in TaxonDetails.
this belongs in the same class as #overview_text_for_user . ... But be aware this is also used in TaxonDetails .
def text_for_user(the_user = nil, options = {})
    the_user ||= EOL::AnonymousUser.new(Language.default)
    options[:per_page] ||= 500
    options[:data_type_ids] = DataType.text_type_ids
    options[:vetted_types] = the_user.vetted_types
    options[:visibility_types] = the_user.visibility_types
    options[:filter_by_subtype] ||= false
    self.data_objects_from_solr(options)
  end
def text_for_user ( the_user = nil , options = { } ) the_user ||= EOL :: AnonymousUser . new ( Language . default ) options [ :per_page ] ||= 500 options [ :data_type_ids ] = DataType . text_type_ids options [ :vetted_types ] = the_user . vetted_types options [ :visibility_types ] = the_user . visibility_types options [ :filter_by_subtype ] ||= false self . data_objects_from_solr ( options ) end
TODO - this belongs in the same class as #overview_text_for_user.
TODO - this belongs in the same class as #overview_text_for_user .
the_user
<not_specific>
options
<not_specific>