scinote-web/app/helpers/search_helper.rb

10 lines
180 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
module SearchHelper
def experiments_results(tag)
experiments = []
tag.my_modules.each do |mod|
experiments << mod.experiment
end
experiments.uniq
end
2016-02-12 23:52:43 +08:00
end