# File lib/model-objects.rb, line 247 def change hash, who, comment, silent what = [] if title != hash[:title] what << "title" self.title = hash[:title] end if desc != hash[:description] what << "description" self.desc = hash[:description] end if reporter != hash[:reporter] what << "reporter" self.reporter = hash[:reporter] end unless what.empty? || silent log "edited " + what.join(", "), who, comment true end !what.empty? end