Skip to content

Instantly share code, notes, and snippets.

@dmcclory
dmcclory / ActiveRecordRelation#or.rb
Last active June 26, 2017 01:54 — forked from dicemanx/ActiveRecordRelation#or.rb
Reproduction of a possible bug in ActiveRecord_AssociationRelation#or
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
# Activate the gem you are reporting the issue against.
@dmcclory
dmcclory / sucker_punch.rb
Last active December 19, 2015 04:39 — forked from brandonhilkert/sucker_punch.rb
use a method_added callback to realias the methods after the base class version of #perform is defined.
require 'celluloid'
require 'pry'
module SuckerPunch
module Job
def self.included(base)
base.send(:include, ::Celluloid)
base.class_eval do