History

about: fix attribution may be Proc

Simon Legner committed 3 years ago

Commit afb3c121 parent 5a8f9521 file · +3 −1Browse files

Unified · Split

lib/docs/core/doc.rb+3−1
@@ -88,7 +88,9 @@ module Docs · 87 unmodified lines
88 88
89 def as_json_extra(store)89 def as_json_extra(store)
90 json = self.as_json90 json = self.as_json
91 json[:attribution] = options[:attribution].strip91 if options[:attribution].is_a?(String)
92 json[:attribution] = options[:attribution].strip
93 end
92 json[:db_size] = store.size(self.db_path) if store.exist?(self.db_path)94 json[:db_size] = store.size(self.db_path) if store.exist?(self.db_path)
93 json[:mtime] = store.mtime(self.meta_path).to_i if store.exist?(self.meta_path)95 json[:mtime] = store.mtime(self.meta_path).to_i if store.exist?(self.meta_path)
94 json96 json

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t