app/models/obcan_justice_sk/decree.rb
# == Schema Information
#
# Table name: obcan_justice_sk_decrees
#
# id :bigint not null, primary key
# guid :string not null
# uri :string not null
# data :jsonb not null
# checksum :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
module ObcanJusticeSk
class Decree < ApplicationRecord
extend ObcanJusticeSk::Importable
after_commit(on: %i[create update]) { ReconcileDecreeJob.perform_later(self) }
def to_mapper
ObcanJusticeSk::DecreeMapper.new(self)
end
end
end