lib/xsys/model/sale_item.rb in xsys-0.0.18 vs lib/xsys/model/sale_item.rb in xsys-0.0.19

- old
+ new

@@ -5,10 +5,10 @@ :client_id, :transaction_date, :receipt_number, :transaction_id, :transaction_kind_id, :transaction_status_id def initialize(attributes={}) attributes.each do |k,v| - self.send("#{k}=", v) + self.send("#{k}=", v) if self.respond_to?(k) end end end end end