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 249 def leading_zero_on_single_digits(number) number > 9 ? number : "0#{number}" end