Revision 428:9cfd7a1d848e vendor/plugins/redmine_bibliography/app/models
| vendor/plugins/redmine_bibliography/app/models/publication.rb | ||
|---|---|---|
| 1 | 1 |
# vendor/plugins/redmine_bibliography/app/models/publication.rb |
| 2 | 2 |
|
| 3 | 3 |
class Publication < ActiveRecord::Base |
| 4 |
unloadable |
|
| 5 |
|
|
| 6 |
|
|
| 4 | 7 |
has_many :authorships |
| 5 | 8 |
has_many :authors, :through => :authorships |
| 6 | 9 |
has_one :bibtex_entry |
| 7 | 10 |
|
| 8 | 11 |
validates_presence_of :title |
| 9 | 12 |
|
| 13 |
accepts_nested_attributes_for :authors, :bibtex_entry |
|
| 14 |
|
|
| 10 | 15 |
attr_writer :current_step |
| 11 | 16 |
|
| 12 | 17 |
def current_step |
Also available in: Unified diff