Class: Stiki::Page

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
FriendlyId
Defined in:
app/models/stiki/page.rb

Instance Method Summary collapse

Instance Method Details

#mark_badgesObject



25
26
27
28
29
30
31
32
# File 'app/models/stiki/page.rb', line 25

def mark_badges
  if authors.size > 1
    # XXX: need revisions to determine last edit and most edits
    #last = authors.order( 'updated_at DESC' ).first
    #authors.where( ["#{Stiki::Author.table_name}.id != ?", last.id] ).update_all( :last_edit => false );
    #authors.where( ["#{Stiki::Author.table_name}.id = ?", last.id] ).update_all( :last_edit => true );
  end
end