We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b6ce0 commit bd546faCopy full SHA for bd546fa
elasticsearch-model/lib/elasticsearch/model.rb
@@ -112,6 +112,11 @@ class << self
112
METHODS.each do |method|
113
delegate method, to: :__elasticsearch__ unless self.public_instance_methods.include?(method)
114
end
115
+
116
+ def inherited(subclass)
117
+ super
118
+ Registry.add(subclass) if subclass.is_a?(Class)
119
+ end
120
121
122
0 commit comments