Mercurial > hg > soundsoftware-site
annotate app/models/changeset.rb.rej @ 683:c3e6c51170fa feature_36
Feature #238 - the New Publication now shows all fields correctly.
| author | luisf <luis.figueira@eecs.qmul.ac.uk> |
|---|---|
| date | Fri, 16 Sep 2011 11:14:10 +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 |
