lib/ruby_lokalise_api/resources/contributor.rb in ruby-lokalise-api-7.2.0 vs lib/ruby_lokalise_api/resources/contributor.rb in ruby-lokalise-api-8.0.0.rc1
- old
+ new
@@ -1,17 +1,9 @@
# frozen_string_literal: true
module RubyLokaliseApi
module Resources
class Contributor < Base
- ID_KEY = 'user_id'
- supports :update, :destroy, [:reload_data, '', :find]
-
- class << self
- def endpoint(project_id, contributor_id = nil)
- path_from projects: project_id,
- contributors: contributor_id
- end
- end
+ MAIN_PARAMS = %i[project_id user_id].freeze
end
end
end