2012-09-27 3 views

답변

0

저는 delayed_job에 익숙하지 않지만 문서에서 판단 할 때 제대로 작동합니다.

after_update :obtain_score 

def get_score 
    # code 
end 

private 
def obtain_score 
    delay.get_score 
end 
+0

안녕하세요, 그렇습니다. 내가 한 일은 단지 한 번에 모든 것을 수행 할 수있는 방법이 될 것이라고 생각했습니다. 추측하지 마라. – chell

2

어때? 나를 위해 일합니다.

after_update :get_score 

private 
def get_score 
    # code 
end 
handle_asynchronously :get_score 
관련 문제