lib/grape_entity/exposure/base.rb in grape-entity-0.10.2 vs lib/grape_entity/exposure/base.rb in grape-entity-1.0.0

- old
+ new

@@ -87,10 +87,10 @@ def valid_value(entity, options) return unless valid?(entity) output = value(entity, options) - output.blank? && @default_value.present? ? @default_value : output + output.blank? && !@default_value.nil? ? @default_value : output end def should_return_key?(options) options.should_return_key?(@key) end