I am trying to override initialize method of a gem as:
# rails_app_folder/lib/redis/unique/queue.rb
require "redis"
class Redis
module Unique
class Queue
def initialize(name, redis_or_options = {})
#Custom logic..
end
end
end
end
However, when I create an new instance Redis::Unique::Queue.new the constructor in the gem folder is executed instead.
Any idea?