Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Enable embedded tasks for ActiveRecord classes. Provides:
- # class AModel < ActiveRecord::Base
- # always_background :a_method
- # end
- #
- # a_model_instance.background.another_method
- if defined?(TorqueBox::Messaging)
- require 'torquebox/messaging/embedded_tasks'
- ActiveRecord::Base.send(:include, TorqueBox::Messaging::EmbeddedTasks)
- end
Add Comment
Please, Sign In to add comment