```ruby
class ChartsController < ApplicationController
  def commits
    render json: Commit.group_by_day(:author_datetime).count
  end
end
```

Adjust commits to encompass the full scope of the project
user
```ruby
class ChartsController < ApplicationController
  def commits
    render json: Commit.group_by_month(:author_datetime).count
  end
end
```
assistant