Make attribution filter accept a proc

pull/304/head
Thibaut 9 years ago
parent a016de572d
commit 9e6420be6a

@ -6,7 +6,11 @@ module Docs
end end
def attribution def attribution
if context[:attribution].is_a?(String)
context[:attribution] context[:attribution]
else
context[:attribution].call(self)
end
end end
def attribution_html def attribution_html

Loading…
Cancel
Save