Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1894

Show
Ignore:
Timestamp:
07/21/07 12:54:49 (1 year ago)
Author:
nahi
Message:
  • ditto.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/mapping/mapping.rb

    r1837 r1894  
    205205    const = ::Object 
    206206    name.sub(/\A::/, '').split('::').each do |const_str| 
    207       begin 
    208         if const.const_defined?(const_str) 
    209           const = const.const_get(const_str) 
    210           next 
    211         end 
    212       rescue NameError 
    213         if lenient 
    214           const_str = XSD::CodeGen::GenSupport.safeconstname(const_str) 
     207      if /\A[A-Z]/ =~ const_str 
     208        begin 
    215209          if const.const_defined?(const_str) 
    216210            const = const.const_get(const_str) 
    217211            next 
    218212          end 
     213        rescue NameError 
     214        end 
     215      end 
     216      if lenient 
     217        const_str = XSD::CodeGen::GenSupport.safeconstname(const_str) 
     218        if const.const_defined?(const_str) 
     219          const = const.const_get(const_str) 
     220          next 
    219221        end 
    220222      end