rubyforgood/casa

View on GitHub
app/helpers/learning_hours_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module LearningHoursHelper
  def format_time(minutes)
    hours = minutes / 60
    remaining_minutes = minutes % 60
    "#{hours} hours #{remaining_minutes} minutes"
  end
end