From 21ae095b1db4276687b99ac3ca7cd1f6b00e944f Mon Sep 17 00:00:00 2001 From: Mark Rickert Date: Wed, 15 Apr 2015 10:37:58 -0400 Subject: [PATCH] Potential fix for #456 @rromanchuk can you please verify? Not sure why actually opening the class and including works and sending `:include` doesn't. --- motion/core/string.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/motion/core/string.rb b/motion/core/string.rb index 6e25bc9e..32906a14 100644 --- a/motion/core/string.rb +++ b/motion/core/string.rb @@ -90,4 +90,12 @@ def to_color end end -NSString.send(:include, BubbleWrap::String) +# Strange fix for https://github.com/rubymotion/BubbleWrap/issues/456 +# +# Originally: +# NSString.send("include", BubbleWrap::String) + +class NSString + include BubbleWrap::String +end +