Method: AutomaticRecentChanges#initialize
- Defined in:
- lib/helpers/default-helpers.rb
#initialize(wiki, changes = 200, pagename = "Recent changes to this site", author = "AutomaticRecentChanges", exclude_automatic_helpers = true, merge_revisions_within = 60*60*12) ⇒ AutomaticRecentChanges
Returns a new instance of AutomaticRecentChanges.
203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/helpers/default-helpers.rb', line 203 def initialize( wiki, changes = 200, pagename = "Recent changes to this site", = "AutomaticRecentChanges", exclude_automatic_helpers = true, merge_revisions_within = 60*60*12 ) super( wiki, pagename, :summarise_revisions => true, :max_pages_to_show => changes, :author => , :sort_pages_by => :revised_on, :event => :page_revised, :reverse_sort => true, :remove_deleted_pages => false, :merge_revisions_within => merge_revisions_within ) do |revision| exclude_automatic_helpers ? revision. !~ /^Automatic/i : true end wiki.watch_for( :day ) { render_summary_page } end |