diff --git a/lib/docs/filters/core/attribution.rb b/lib/docs/filters/core/attribution.rb index 7f10fa9f..e5923d51 100644 --- a/lib/docs/filters/core/attribution.rb +++ b/lib/docs/filters/core/attribution.rb @@ -6,7 +6,11 @@ module Docs end def attribution - context[:attribution] + if context[:attribution].is_a?(String) + context[:attribution] + else + context[:attribution].call(self) + end end def attribution_html