diff options
author | Michael Collis <michael.collis@blueapron.com> | 2018-01-12 15:16:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-12 15:16:16 -0500 |
commit | 2a6eaeb86e7b64952640d9f5b048c7ded496ce5d (patch) | |
tree | 779c91af23077eee57c69b56a5c3d0d7fa2d3db2 /ruby/ext/google/protobuf_c | |
parent | 9f80df026933901883da1d556b38292e14836612 (diff) | |
download | protobuf-2a6eaeb86e7b64952640d9f5b048c7ded496ce5d.tar.gz protobuf-2a6eaeb86e7b64952640d9f5b048c7ded496ce5d.tar.bz2 protobuf-2a6eaeb86e7b64952640d9f5b048c7ded496ce5d.zip |
Fix scope resolution for MessageExts in Ruby
Diffstat (limited to 'ruby/ext/google/protobuf_c')
-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); |