lib/milestoner/configuration/transformers/citations/label.rb in milestoner-17.6.0 vs lib/milestoner/configuration/transformers/citations/label.rb in milestoner-17.9.0
- old
+ new
@@ -21,13 +21,13 @@
@key = key
@path = path
@citation = citation
end
- def call content
- content.fetch_value(key) { citation.open(path).title }
- .then { |value| value unless String(value).empty? }
- .then { |value| Success content.merge!(key => value) }
+ def call attributes
+ attributes.fetch_value(key) { citation.open(path).title }
+ .then { |value| value unless String(value).empty? }
+ .then { |value| Success attributes.merge!(key => value) }
end
private
attr_reader :key, :path, :citation