Timeline ajax loading

This commit is contained in:
Harry Bomrah committed 2012-07-02 21:06:36 +08:00
1 parent a1e74987dc
commit bacb1f1e63
8 files changed
+327 -24

No files matched your search

+2 -1
View File
@@ -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
+2 -1
View File
@@ -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