Revision 390:5562a95edbf7 vendor/plugins/redmine_bibliography/app/models
| vendor/plugins/redmine_bibliography/app/models/publication.rb | ||
|---|---|---|
| 15 | 15 |
def steps |
| 16 | 16 |
%w[new review] |
| 17 | 17 |
end |
| 18 |
|
|
| 19 |
def next_step |
|
| 20 |
self.current_step = step[steps.index(current_step)+1] |
|
| 21 |
end |
|
| 18 | 22 |
|
| 23 |
def previous_step |
|
| 24 |
self.current_step = step[steps.index(current_step)-1] |
|
| 25 |
end |
|
| 26 |
|
|
| 27 |
def first_step? |
|
| 28 |
current_step == steps.first |
|
| 29 |
end |
|
| 19 | 30 |
|
| 20 | 31 |
end |
Also available in: Unified diff