lib/kb/models/product.rb in barkibu-kb-0.25.0 vs lib/kb/models/product.rb in barkibu-kb-0.26.0

- old
+ new

@@ -21,14 +21,9 @@ define_attribute_methods(*FIELDS) attribute :purchasable, :boolean - STRING_FIELDS.each do |field| - attribute field, :string - end - - STRING_ARRAY_FIELDS.each do |field| - attribute field, :array_of_strings - end + define_attributes STRING_FIELDS, :string + define_attributes STRING_ARRAY_FIELDS, :array_of_strings end end