lib/remi/encoder.rb in remi-0.3.0 vs lib/remi/encoder.rb in remi-0.3.1
- old
+ new
@@ -36,10 +36,10 @@
@field_symbolizer
end
# @return [Remi::Fields] The fields (uses the context fields if defined)
def fields
- return context.fields if context if context.respond_to? :fields
+ return context.fields if context && context.respond_to?(:fields)
@fields
end
end
end