about: fix attribution may be Proc

pull/1911/head
Simon Legner 2 years ago
parent 5a8f952568
commit afb3c12c8b

@ -88,7 +88,9 @@ module Docs
def as_json_extra(store)
json = self.as_json
if options[:attribution].is_a?(String)
json[:attribution] = options[:attribution].strip
end
json[:db_size] = store.size(self.db_path) if store.exist?(self.db_path)
json[:mtime] = store.mtime(self.meta_path).to_i if store.exist?(self.meta_path)
json

Loading…
Cancel
Save