Timeline ajax loading
This commit is contained in:
1 parent
a1e74987dc
commit
bacb1f1e63
8 files changed
+327
-24
No files matched your search
+2
-1
@@ -9,7 +9,8 @@ class Paper
|
||||
field :coauthors, default: "Allen, Shelly, Eric, Manson, Chris, Clara, Anna, Albee, Vincent, Devin, Chunchi, Ika, Jaoshua, Ray, Matt, Lin, Spen"
|
||||
field :created_at, type: Date, default: ->{12.months.ago}
|
||||
|
||||
belongs_to :journal
|
||||
belongs_to :user
|
||||
|
||||
|
||||
|
||||
end
|
||||
@@ -23,7 +23,8 @@ class User
|
||||
has_one :desktop, :autosave => true, :dependent => :destroy
|
||||
has_many :other_accounts, :autosave => true, :dependent => :destroy
|
||||
has_many :journals, :autosave => true, :dependent => :destroy
|
||||
|
||||
has_many :papers, :autosave => true, :dependent => :destroy
|
||||
|
||||
belongs_to :role
|
||||
has_and_belongs_to_many :sub_roles
|
||||
accepts_nested_attributes_for :attribute_values, :allow_destroy => true
|
||||
|
||||
Reference in new issue
Block a user