Permalink
Browse files

make sure not to save the wsdls more than once

  • Loading branch information...
1 parent cf37b4b commit 87d417a001c5cff8646712c9ee4d8e4aeb9f2918 mpclocal committed Aug 28, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −0 app.rb
  2. +1 −1 lib/soap4r2ruby.rb
View
1 app.rb
@@ -49,6 +49,7 @@ def save_wsdls
elsif @params[:action] == 'Submit'
update_saved_forms
@saved_wsdls += [@params[:wsdl].to_s]
+ @saved_wsdls.uniq!
save_wsdls
end
@wsdl = @params[:wsdl]
View
@@ -201,7 +201,7 @@ def build_default_instance_for_element_and_schemadef(e, schemadef)
object = nil#e.mapped_class.class_eval((e.mapped_class.constants - ['Enumerator'])[0])
elsif (e.mapped_class.ancestors.include?(Array))
# args -schemadef.elements.entries.map{|e| build_default_instance_for_element_and_schemadef(e, schemadef)}
- #todo implement this
+ #todo may need to implement this
object = [nil]
else
#complex types

0 comments on commit 87d417a

Please sign in to comment.