method
leading_zero_on_single_digits
leading_zero_on_single_digits(number)
private
Hide source
# File actionpack/lib/action_view/helpers/date_helper.rb, line 572 def leading_zero_on_single_digits(number) number > 9 ? number : "0#{number}" end