lib/ddr/models/licenses/license.rb in ddr-models-2.3.2 vs lib/ddr/models/licenses/license.rb in ddr-models-2.4.0.rc1

- old
+ new

@@ -1,14 +1,16 @@ -require "ddr_aux/client" +require "active_resource" module Ddr::Models - class License < DdrAux::Client::License + class License < ActiveResource::Base + self.site = ENV["DDR_AUX_API_URL"] + attr_accessor :pid def self.call(obj) if obj.license - license = find(url: obj.license) + license = get(:find, url: obj.license) license.pid = obj.pid license end end