add edit function
This commit is contained in:
1 parent
a3edebce6a
commit
d7599f1ccf
6 files changed
+116
-119
No files matched your search
@@ -12,7 +12,7 @@ class WritingJournal
|
||||
has_and_belongs_to_many :tags, :class_name => "PersonalJournalTag"
|
||||
has_and_belongs_to_many :journal_author_types
|
||||
has_and_belongs_to_many :journal_level_types
|
||||
|
||||
has_many :writing_journal_files, :autosave => true, :dependent => :destroy
|
||||
belongs_to :journal_paper_type
|
||||
|
||||
field :year
|
||||
@@ -31,7 +31,6 @@ class WritingJournal
|
||||
field :create_user_id, :type => BSON::ObjectId
|
||||
field :update_user_id, :type => BSON::ObjectId
|
||||
|
||||
has_many :writing_journal_files, :autosave => true, :dependent => :destroy
|
||||
|
||||
accepts_nested_attributes_for :writing_journal_files, :allow_destroy => true
|
||||
after_save :save_writing_journal_files
|
||||
|
||||
Reference in new issue
Block a user