Restream/redmine_undev_git

View on GitHub
app/models/fetch_event.rb

Summary

Maintainability
A
0 mins
Test Coverage
class FetchEvent < ActiveRecord::Base
  belongs_to :repository

  after_commit :cleanup_fetch_events, on: :create

  scope :sorted, -> { order('id desc') }

  def cleanup_fetch_events
    repository.cleanup_fetch_events
  end
end