lib/onoma/item.rb in onoma-0.6.4 vs lib/onoma/item.rb in onoma-0.7.0
- old
+ new
@@ -281,10 +281,10 @@
property.fallbacks.each do |fallback|
value ||= @attributes[fallback]
break if value
end
end
- value ||= cast_property(name, property.default) if property.default
+ value = cast_property(name, property.default) if property.default && value.nil?
end
value
end
def selection(name)