Class: CargoWiki::Article
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CargoWiki::Article
- Defined in:
- app/models/cargo_wiki/article.rb
Instance Attribute Summary collapse
-
#last_commit_message ⇒ Object
Returns the value of attribute last_commit_message.
Instance Method Summary collapse
Instance Attribute Details
#last_commit_message ⇒ Object
Returns the value of attribute last_commit_message.
5 6 7 |
# File 'app/models/cargo_wiki/article.rb', line 5 def @last_commit_message end |
Instance Method Details
#last_update_by ⇒ Object
16 17 18 19 |
# File 'app/models/cargo_wiki/article.rb', line 16 def last_update_by whodunnit = self.versions.last.whodunnit whodunnit.nil? ? self. : User.find(whodunnit) end |