diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2018-03-13 13:46:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 13:46:01 -0700 |
commit | 4f110257c59136400975341828a8b3c04c2141ef (patch) | |
tree | 6bd851aff616057d12964c14869ce30e533f4fdb /ruby | |
parent | 5487d8ca0f5d76f930ea24ae62f67703592b2cdf (diff) | |
parent | 2a6eaeb86e7b64952640d9f5b048c7ded496ce5d (diff) |
Merge pull request #4167 from mike9005/patch-1
Ruby: Fix scope resolution for MessageExts
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/ext/google/protobuf_c/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/ext/google/protobuf_c/message.c b/ruby/ext/google/protobuf_c/message.c index bc73d48c..63a61baf 100644 --- a/ruby/ext/google/protobuf_c/message.c +++ b/ruby/ext/google/protobuf_c/message.c @@ -540,9 +540,9 @@ VALUE build_class_from_descriptor(Descriptor* desc) { get_def_obj(desc->msgdef)); rb_define_alloc_func(klass, Message_alloc); rb_require("google/protobuf/message_exts"); - rb_include_module(klass, rb_eval_string("Google::Protobuf::MessageExts")); + rb_include_module(klass, rb_eval_string("::Google::Protobuf::MessageExts")); rb_extend_object( - klass, rb_eval_string("Google::Protobuf::MessageExts::ClassMethods")); + klass, rb_eval_string("::Google::Protobuf::MessageExts::ClassMethods")); rb_define_method(klass, "method_missing", Message_method_missing, -1); |