app/helpers/measures_helper.rb
# Helper for iterating through the sub ids for a measure. For measures that do not have any sub ids
# this method will loop once passing in nil as a sub id
Helper for iterating through the sub ids for a measure. For measures that do not have any sub ids
this method will loop once passing in nil as a sub id
Helper for iterating through the sub ids for a measure . For measures that do not have any sub ids this method will loop once passing in nil as a sub id
def subs_iterator(measure_subs)
    subs = nil
    if measure_subs.empty?
      subs = [nil]
    else
      subs = measure_subs
    end
    subs.each do |sub_id|
      yield sub_id
    end
  end
def subs_iterator ( measure_subs ) subs = nil if measure_subs . empty? subs = [ nil ] else subs = measure_subs end subs . each do | sub_id | yield sub_id end end
Helper for iterating through the sub ids for a measure.
Helper for iterating through the sub ids for a measure .
measure_subs
<not_specific>