Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/models/publication.rb @ 536:0058debf7871 cannam_integration
Merge from branch "feature_36"
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 26 Jul 2011 14:08:18 +0100 |
parents | 76d064830472 |
children | ca9e8e562ea7 |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/models/publication.rb Mon Jul 25 15:00:31 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/models/publication.rb Tue Jul 26 14:08:18 2011 +0100 @@ -16,26 +16,4 @@ has_and_belongs_to_many :projects, :uniq => true - attr_writer :current_step - - def current_step - @current_step || steps.first - end - - def steps - %w[new review] - end - - def next_step - self.current_step = steps[steps.index(current_step)+1] - end - - def previous_step - self.current_step = steps[steps.index(current_step)-1] - end - - def first_step? - current_step == steps.first - end - end