lib/access/redemption.rb in access-2.0.21 vs lib/access/redemption.rb in access-2.0.22

- old
+ new

@@ -16,11 +16,11 @@ def initialize(values) self.class.class_eval {attr_reader *values.keys } values.each do |attribute_name, attribute_value| self.instance_variable_set("@#{attribute_name}", attribute_value) end - @offer = Access::Offer.new(@offer) - @member = Access::Member.new(@member) + @offer = Access::Offer.new(@offer) if @offer + @member = Access::Member.new(@member) if @member end end end