点赞有延迟
This commit is contained in:
parent
12c60547ad
commit
a845da5c17
|
@ -2,8 +2,8 @@ class PraiseTread < ActiveRecord::Base
|
||||||
attr_accessible :user_id,:praise_tread_object_id,:praise_tread_object_type,:praise_or_tread
|
attr_accessible :user_id,:praise_tread_object_id,:praise_tread_object_type,:praise_or_tread
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
belongs_to :praise_tread_object, polymorphic: true
|
belongs_to :praise_tread_object, polymorphic: true
|
||||||
after_create :be_user_score
|
#after_create :be_user_score
|
||||||
after_destroy :down_user_score
|
#after_destroy :down_user_score
|
||||||
include UserScoreHelper
|
include UserScoreHelper
|
||||||
def self.find_object_by_type_and_id(type,id)
|
def self.find_object_by_type_and_id(type,id)
|
||||||
@obj = nil
|
@obj = nil
|
||||||
|
|
Loading…
Reference in New Issue