lib/jss/api_object/script.rb in ruby-jss-1.1.0b5 vs lib/jss/api_object/script.rb in ruby-jss-1.1.3

- old
+ new

@@ -182,10 +182,10 @@ ### if the filename matches the name, change that too. @filename = new_val if @filename == @name @name = new_val ### if our REST resource is based on the name, update that too - @rest_rsrc = "#{RSRC_BASE}/name/#{CGI.escape @name}" if @rest_rsrc.include? '/name/' + @rest_rsrc = "#{RSRC_BASE}/name/#{CGI.escape @name.to_s}" if @rest_rsrc.include? '/name/' @need_to_update = true end # name= ### Change the os_requirements ###