Unified · Split
| @@ -88,7 +88,9 @@ module Docs · 87 unmodified lines | ||
| 88 | 88 | |
| 89 | 89 | def as_json_extra(store) |
| 90 | 90 | json = self.as_json |
| 91 | − json[:attribution] = options[:attribution].strip | |
| 91 | + if options[:attribution].is_a?(String) | |
| 92 | + json[:attribution] = options[:attribution].strip | |
| 93 | + end | |
| 92 | 94 | json[:db_size] = store.size(self.db_path) if store.exist?(self.db_path) |
| 93 | 95 | json[:mtime] = store.mtime(self.meta_path).to_i if store.exist?(self.meta_path) |
| 94 | 96 | json |