app/filters/filter_helper.rb
# this actually adds the filters to the all_include array in a filter_chain object, which will run the filters
# in my case, I want to get my filter fda_approved_drugs.rb to run, and get a set of interactions (drugs really) that have
this actually adds the filters to the all_include array in a filter_chain object, which will run the filters
in my case, I want to get my filter fda_approved_drugs.rb to run, and get a set of interactions (drugs really) that have
this actually adds the filters to the all_include array in a filter_chain object which will run the filters in my case I want to get my filter fda_approved_drugs . rb to run and get a set of interactions ( drugs really ) that have
def add_filter(filter, items, filter_name)
    filter.tap do |f|
      Array(items).each do |item|
        f.send(filter_name, item)
      end
    end
  end
def add_filter ( filter , items , filter_name ) filter . tap do | f | Array ( items ) . each do | item | f . send ( filter_name , item ) end end end
this actually adds the filters to the all_include array in a filter_chain object, which will run the filters
in my case, I want to get my filter fda_approved_drugs.rb to run, and get a set of interactions (drugs really) that have
this actually adds the filters to the all_include array in a filter_chain object which will run the filters in my case I want to get my filter fda_approved_drugs . rb to run and get a set of interactions ( drugs really ) that have
filter
items
filter_name