annotate app/models/changeset.rb.rej @ 893:a2450090c0f4 feature_64

Close obsolete branch feature_64
author Chris Cannam
date Tue, 08 Feb 2011 12:30:26 +0000
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