test_dummy 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +2 -0
- data/VERSION +1 -1
- data/lib/test_dummy.rb +1 -1
- data/test_dummy.gemspec +1 -1
- metadata +2 -2
data/.gitignore
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.1
|
data/lib/test_dummy.rb
CHANGED
|
@@ -207,7 +207,7 @@ module TestDummy
|
|
|
207
207
|
|
|
208
208
|
@test_dummy_order.each do |name|
|
|
209
209
|
if (reflection = reflect_on_association(name))
|
|
210
|
-
unless ((with_attributes and with_attributes.key?(name.to_sym)) or model.send(name))
|
|
210
|
+
unless ((with_attributes and with_attributes.key?(name.to_sym)) or model.send(name).present?)
|
|
211
211
|
model.send(:"#{name}=", dummy_method_call(model, with_attributes, dummy_method(name)))
|
|
212
212
|
end
|
|
213
213
|
else
|
data/test_dummy.gemspec
CHANGED