lib/ruby-lokalise-api/resources/branch.rb in ruby-lokalise-api-4.3.1 vs lib/ruby-lokalise-api/resources/branch.rb in ruby-lokalise-api-4.4.0
- old
+ new
@@ -4,10 +4,11 @@
module Resources
class Branch < Base
supports :update, :destroy, [:reload_data, '', :find]
def merge(params = {})
- self.class.merge @client, self.class.endpoint(project_id, branch_id, :merge), params
+ klass = self.class
+ klass.merge @client, klass.endpoint(project_id, branch_id, :merge), params
end
class << self
def merge(client, path, params, *_args)
post(path, client, params)['content']