Cross Reference:
xref
: /
ontohub
/
config
/
initializers
/
resque_helper.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
resque_helper.rb revision a1711a05a256127ea16f605866a795ba8fbd28e0
class
ActiveRecord
::
Base
def
self.perform
(
id
,
method
, *
args
)
find
(
id
)
.
send
(
method
, *
args
)
end
def
async
(
method
, *
args
)
Resque.enqueue
(
self.class
,
id
,
method
, *
args
)
end
end
# namespace for multiple instances of ontohub
Resque.redis.namespace
=
'staging'