|
| 1 | +class ActiveRecord::Base |
| 2 | + extend Ancestry::HasAncestry |
| 3 | +end |
| 4 | + |
| 5 | +class Directory < ActiveRecord::Base |
| 6 | + include Ancestry::InstanceMethods[Directory, ActiveRecord_Relation, Integer] |
| 7 | + extend Ancestry::ClassMethods[Directory, ActiveRecord_Relation, Integer] |
| 8 | + extend Ancestry::MaterializedPath[Directory, ActiveRecord_Relation, Integer] |
| 9 | + include Ancestry::MaterializedPath::InstanceMethods[Directory, Integer] |
| 10 | + extend ActiveRecord::Base::ClassMethods[Directory, ActiveRecord_Relation, Integer] |
| 11 | + |
| 12 | + def rank: () -> Integer |
| 13 | + |
| 14 | + class ActiveRecord_Relation < ::ActiveRecord::Relation |
| 15 | + include ::ActiveRecord::Relation::Methods[Directory, ::Integer] |
| 16 | + include Ancestry::ClassMethods[Directory, ActiveRecord_Relation, Integer] |
| 17 | + include Ancestry::MaterializedPath[Directory, ActiveRecord_Relation, Integer] |
| 18 | + end |
| 19 | +end |
| 20 | + |
| 21 | +class Group < ActiveRecord::Base |
| 22 | + include Ancestry::InstanceMethods[Group, ActiveRecord_Relation, Integer] |
| 23 | + extend Ancestry::ClassMethods[Group, ActiveRecord_Relation, Integer] |
| 24 | + extend Ancestry::MaterializedPath2[Group, ActiveRecord_Relation, Integer] |
| 25 | + include Ancestry::MaterializedPathPg |
| 26 | + include Ancestry::MaterializedPath::InstanceMethods[Group, Integer] |
| 27 | + include Ancestry::MaterializedPath2::InstanceMethods[Integer] |
| 28 | + |
| 29 | + class ActiveRecord_Relation < ::ActiveRecord::Relation |
| 30 | + include Ancestry::ClassMethods[Group, ActiveRecord_Relation, Integer] |
| 31 | + include Ancestry::MaterializedPath2[Directory, ActiveRecord_Relation, Integer] |
| 32 | + end |
| 33 | +end |
| 34 | + |
| 35 | +class Category < ActiveRecord::Base |
| 36 | + include Ancestry::InstanceMethods[Category, ActiveRecord_Relation, Integer] |
| 37 | + extend Ancestry::ClassMethods[Category, ActiveRecord_Relation, Integer] |
| 38 | + extend Ancestry::MaterializedPath[Category, ActiveRecord_Relation, Integer] |
| 39 | + include Ancestry::MaterializedPath::InstanceMethods[Category, Integer] |
| 40 | + |
| 41 | + class ActiveRecord_Relation < ::ActiveRecord::Relation |
| 42 | + include Ancestry::ClassMethods[Category, ActiveRecord_Relation, Integer] |
| 43 | + include Ancestry::MaterializedPath[Category, ActiveRecord_Relation, Integer] |
| 44 | + end |
| 45 | +end |
| 46 | + |
| 47 | +class Tag < ActiveRecord::Base |
| 48 | + include Ancestry::InstanceMethods[Tag, ActiveRecord_Relation, Integer] |
| 49 | + extend Ancestry::ClassMethods[Tag, ActiveRecord_Relation, Integer] |
| 50 | + extend Ancestry::MaterializedPath[Tag, ActiveRecord_Relation, Integer] |
| 51 | + include Ancestry::MaterializedPath::InstanceMethods[Tag, Integer] |
| 52 | + |
| 53 | + class ActiveRecord_Relation < ::ActiveRecord::Relation |
| 54 | + include Ancestry::ClassMethods[Tag, ActiveRecord_Relation, Integer] |
| 55 | + include Ancestry::MaterializedPath[Tag, ActiveRecord_Relation, Integer] |
| 56 | + end |
| 57 | +end |
| 58 | + |
| 59 | +class Item < ActiveRecord::Base |
| 60 | + include Ancestry::InstanceMethods[Item, ActiveRecord_Relation, Integer] |
| 61 | + extend Ancestry::ClassMethods[Item, ActiveRecord_Relation, Integer] |
| 62 | + extend Ancestry::MaterializedPath[Item, ActiveRecord_Relation, Integer] |
| 63 | + include Ancestry::MaterializedPath::InstanceMethods[Item, Integer] |
| 64 | + |
| 65 | + class ActiveRecord_Relation < ::ActiveRecord::Relation |
| 66 | + include Ancestry::ClassMethods[Item, ActiveRecord_Relation, Integer] |
| 67 | + include Ancestry::MaterializedPath[Item, ActiveRecord_Relation, Integer] |
| 68 | + end |
| 69 | +end |
| 70 | + |
| 71 | +class Node < ActiveRecord::Base |
| 72 | + include Ancestry::InstanceMethods[Node, ActiveRecord_Relation, Integer] |
| 73 | + extend Ancestry::ClassMethods[Node, ActiveRecord_Relation, Integer] |
| 74 | + extend Ancestry::MaterializedPath[Node, ActiveRecord_Relation, Integer] |
| 75 | + include Ancestry::MaterializedPath::InstanceMethods[Node, Integer] |
| 76 | + |
| 77 | + class ActiveRecord_Relation < ::ActiveRecord::Relation |
| 78 | + include Ancestry::ClassMethods[Node, ActiveRecord_Relation, Integer] |
| 79 | + include Ancestry::MaterializedPath[Node, ActiveRecord_Relation, Integer] |
| 80 | + end |
| 81 | +end |
| 82 | + |
| 83 | +class MySerializer |
| 84 | + @parent: untyped |
| 85 | + @children: Array[untyped] |
| 86 | + |
| 87 | + def initialize: (untyped parent, children: Array[untyped]) -> void |
| 88 | +end |
0 commit comments