Initial Redmine tooling and local plugin forks

This commit is contained in:
Jason Thistlethwaite
2026-04-24 22:01:18 +00:00
commit 9f682af0eb
683 changed files with 56878 additions and 0 deletions
@@ -0,0 +1,15 @@
class EventOutboxEvent < ActiveRecord::Base
validates :event_type, :source_type, :source_id, :occurred_at, :payload, :presence => true
scope :pending, lambda { where(:processed_at => nil).order(:id) }
def payload_data
ActiveSupport::JSON.decode(payload)
rescue
{}
end
def payload_data=(data)
self.payload = ActiveSupport::JSON.encode(data)
end
end