Include SentencesParser inside the right class
We were including it in the Object class, making its methods available everywhere.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
require "translator-text"
|
||||
include RemoteTranslations::Microsoft::SentencesParser
|
||||
|
||||
class RemoteTranslations::Microsoft::Client
|
||||
include SentencesParser
|
||||
CHARACTERS_LIMIT_PER_REQUEST = 5000
|
||||
PREVENTING_TRANSLATION_KEY = "notranslate".freeze
|
||||
|
||||
|
||||
Reference in New Issue
Block a user