Class: Stiki::Page
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Stiki::Page
- Extended by:
- FriendlyId
- Defined in:
- app/models/stiki/page.rb
Instance Method Summary collapse
Instance Method Details
#mark_badges ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'app/models/stiki/page.rb', line 25 def mark_badges if .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 |