Sha256: 7daaf1c8daa990c99f65a6977ffb59902e99599f865b0e204a52d914dd109360
Contents?: true
Size: 442 Bytes
Versions: 3
Compression:
Stored size: 442 Bytes
Contents
# Not perfect. Simple `gem` hack to avoid the # Mysql2Adapter in ActiveREcord from using rubygems. # if defined?(Rails) $ORIG_GEM_METHOD = method(:gem) kernel = (class << ::Kernel; self; end) [kernel, ::Kernel].each do |k| k.send :remove_method, :gem k.send :define_method, :gem do |dep, *reqs| unless ['mysql2'].include?(dep) $ORIG_GEM_METHOD.call(dep, *reqs) end end k.send :public, :gem end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mysql2-lambda-0.5.3.2 | ./lib/mysql2-lambda.rb |
mysql2-lambda-0.5.3.1 | ./lib/mysql2-lambda.rb |
mysql2-lambda-0.5.3.0 | ./lib/mysql2-lambda.rb |