diff --git a/sig/handwritten/app/models/announcement.rbs b/sig/handwritten/app/models/announcement.rbs index 04ae855a..cc7035e0 100644 --- a/sig/handwritten/app/models/announcement.rbs +++ b/sig/handwritten/app/models/announcement.rbs @@ -3,4 +3,11 @@ class Announcement < ApplicationRecord # It should be removed if rbs_rails will support it. # refs: https://github.com/pocke/rbs_rails/pull/268 def self.published: () -> Announcement::ActiveRecord_Relation + + class ActiveRecord_Relation + # NOTE: This method has been declared manually because current rbs_rails does not support enum definitions. + # It should be removed if rbs_rails will support it. + # refs: https://github.com/pocke/rbs_rails/pull/268 + def published: () -> self + end end