<< | Index | >>
Updated atc links to specify by lookandfeel (with ENABLED
, DISABLED
)
Updated separator,too.
def atc_optional_links(model, session=@session) links = [ :atc_drugbank_link, :atc_dosing_link, :atc_division_link, :atc_pharmacokinetic_link, ].collect{ |link| self.send(link, *[model, session]) }.compact links.dup.each_with_index{ |l, i| links.insert(links.index(l), ' - ') unless i.zero? } links end
Attach: