File tree 1 file changed +19
-0
lines changed
elasticsearch-model/lib/elasticsearch
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 29
29
module Elasticsearch
30
30
module Model
31
31
32
+ # Add the Elasticsearch::Model functionality the including class/module
33
+ #
34
+ def self . included ( base )
35
+ base . class_eval do
36
+ extend Elasticsearch ::Model ::Client ::ClassMethods
37
+ include Elasticsearch ::Model ::Client ::InstanceMethods
38
+
39
+ extend Elasticsearch ::Model ::Naming ::ClassMethods
40
+ include Elasticsearch ::Model ::Naming ::InstanceMethods
41
+
42
+ extend Elasticsearch ::Model ::Indexing ::ClassMethods
43
+ include Elasticsearch ::Model ::Indexing ::InstanceMethods
44
+
45
+ include Elasticsearch ::Model ::Serializing ::InstanceMethods
46
+
47
+ extend Elasticsearch ::Model ::Searching ::ClassMethods
48
+ end
49
+ end
50
+
32
51
module ClassMethods
33
52
34
53
# Get or set the client for all models
You can’t perform that action at this time.
0 commit comments