Update commits.rb

added missing class inheritance