Module: Wiki::WikiHelper

Defined in:
app/helpers/wiki/wiki_helper.rb

Instance Method Summary collapse

Instance Method Details

#wiki_changes(max = 10) ⇒ Object



3
4
5
6
# File 'app/helpers/wiki/wiki_helper.rb', line 3

def wiki_changes(max=10)
  changes = Rails.configuration.wiki.changelog.first(max)
  "<ol>#{render partial: "wiki/change", collection: changes}</ol>".html_safe
end