1module SignatureHelper
  • Complexity 1 » saikuro
2  def signature_count(key, count, options = {})
 
3    t(:"#{key}.html", siganture_count_options(count, number_with_delimiter(count), options))
 
4  end
 
5
 
6  private
 
7
  • UtilityFunction - doesn't depend on instance state (maybe move it to another class?) » reek
  • Complexity 1 » saikuro
8  def siganture_count_options(count, formatted_count, options)
 
 9    options.reverse_merge(scope: :"petitions.signature_counts", count: count, formatted_count: formatted_count)
 
10  end
 
11end