fix id/string error in receive local job
This commit is contained in:
parent
b8a0abd122
commit
bc9352eabd
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,8 @@ module Jobs
|
||||||
def self.perform(user_id, person_id, object_type, object_id)
|
def self.perform(user_id, person_id, object_type, object_id)
|
||||||
user = User.find(user_id)
|
user = User.find(user_id)
|
||||||
person = Person.find(person_id)
|
person = Person.find(person_id)
|
||||||
object = eval("#{object_type}.first(:id => \"#{object_id}\")")
|
object = object_type.constantize.first(:id => object_id)
|
||||||
|
|
||||||
user.receive_object(object, person)
|
user.receive_object(object, person)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue