Class: Riaction::ProfileCreationCallback
- Inherits:
-
Object
- Object
- Riaction::ProfileCreationCallback
- Defined in:
- lib/riaction/profile_creation_callback.rb
Instance Method Summary collapse
-
#after_create(record) ⇒ Object
Enqueue a Riaction::ProfileCreatore object in resque.
Instance Method Details
#after_create(record) ⇒ Object
Enqueue a Riaction::ProfileCreatore object in resque
8 9 10 |
# File 'lib/riaction/profile_creation_callback.rb', line 8 def after_create(record) Resque.enqueue(::Riaction::ProfileCreator, record.class.base_class.to_s, record.id) unless record.class.riactionless? end |