lib/xsys/model/provider_kind.rb in xsys-0.0.18 vs lib/xsys/model/provider_kind.rb in xsys-0.0.19
- old
+ new
@@ -6,10 +6,10 @@
def initialize(attributes={})
attributes.each do |k,v|
if k == 'kind'
@kind = ProviderKind.new(v)
else
- self.send("#{k}=", v)
+ self.send("#{k}=", v) if self.respond_to?(k)
end
end
end
end
end