lib/netsuite/field_support.rb in netsuite-0.0.6 vs lib/netsuite/field_support.rb in netsuite-0.0.7

- old
+ new

@@ -8,20 +8,20 @@ module ClassMethods def fields(*args) if args.empty? - @fields ||= {} + @fields ||= Set.new else args.each do |arg| field arg end end end def field(name) name_sym = name.to_sym - (@fields ||= Set.new) << name_sym + fields << name_sym define_method(name_sym) do attributes[name_sym] end define_method("#{name_sym}=") do |value|