annotate app/models/changeset.rb.rej @ 344:1a514b9347d4 feature_121

Add Recent Activity partial, include it as a block in My Page (on by default) and in the project information page
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 31 Mar 2011 15:19:30 +0100
parents 1d32c0a0efbf
children
rev   line source
Chris@14 1 --- app/models/changeset.rb
Chris@14 2 +++ app/models/changeset.rb
Chris@14 3 @@ -152,6 +152,15 @@
Chris@14 4 def self.normalize_comments(str)
Chris@14 5 to_utf8(str.to_s.strip)
Chris@14 6 end
Chris@14 7 +
Chris@14 8 + # Creates a new Change from it's common parameters
Chris@14 9 + def create_change(change)
Chris@14 10 + Change.create(:changeset => self,
Chris@14 11 + :action => change[:action],
Chris@14 12 + :path => change[:path],
Chris@14 13 + :from_path => change[:from_path],
Chris@14 14 + :from_revision => change[:from_revision])
Chris@14 15 + end
Chris@14 16
Chris@14 17 private
Chris@14 18