lib/conglomerate/datum_builder.rb in conglomerate-0.12.0 vs lib/conglomerate/datum_builder.rb in conglomerate-0.12.1
- old
+ new
@@ -5,10 +5,10 @@
builds Conglomerate::Datum
module BuildOverride
def build(attrs = {})
item = objects.first
- val = item.send(_builder_name) if item
+ val = item.send(_builder_name) if item && item.respond_to?(_builder_name)
attrs = {
:name => _builder_name,
:value => val
}.merge(attrs)