Make attribution filter accept a proc

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

@ -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

Loading…
Cancel
Save