lib/octobat/octobat_object.rb in octobat-0.0.9 vs lib/octobat/octobat_object.rb in octobat-0.0.10
- old
+ new
@@ -142,15 +142,17 @@
keys.each do |k|
next if @@permanent_attributes.include?(k)
k_eq = :"#{k}="
define_method(k) { @values[k] }
define_method(k_eq) do |v|
+=begin
if v == ""
raise ArgumentError.new(
"You cannot set #{k} to an empty string." \
"We interpret empty strings as nil in requests." \
"You may set #{self}.#{k} = nil to delete the property.")
end
+=end
@values[k] = v
@unsaved_values.add(k)
end
end
end