lib/recommendable.rb in recommendable-2.1.4 vs lib/recommendable.rb in recommendable-2.2.0
- old
+ new
@@ -22,9 +22,10 @@
warn 'Your ORM is not currently supported. Please open an issue at https://github.com/davidcelis/recommendable'
end
def enqueue(user_id)
user_id = user_id.id if user_id.is_a?(Recommendable.config.user_class)
+ user_id = user_id.to_s
if defined?(::Sidekiq)
Recommendable::Workers::Sidekiq.perform_async(user_id)
elsif defined?(::Resque)
Resque.enqueue(Recommendable::Workers::Resque, user_id)