lib/runcible/extensions/distributor.rb in runcible-0.1.1 vs lib/runcible/extensions/distributor.rb in runcible-0.1.2
- old
+ new
@@ -29,11 +29,11 @@
class Distributor
attr_accessor 'auto_publish', 'id'
def initialize(params={})
@auto_publish = false
- self.id = SecureRandom.hex(10)
+ self.id = params[:id] || SecureRandom.hex(10)
params.each{|k,v| self.send("#{k.to_s}=",v)}
end
end
end
-end
\ No newline at end of file
+end