Skip to content

Instantly share code, notes, and snippets.

View BMorearty's full-sized avatar
🐮
moo

Brian Morearty BMorearty

🐮
moo
View GitHub Profile
if ActiveRecord.method_defined? :pluck
raise "Upgraded to Rails 3.2, eh? It's time to remove the activerecord31_pluck.rb monkeypatch."
end
module ActiveRecord
class Base
class << self
delegate :pluck, :to =>:scoped
end
end
@BMorearty
BMorearty / gist:2983961
Created June 24, 2012 16:52 — forked from dx7/gist:1333785
Installing ruby-debug with ruby-1.9.3-p0
### UPDATE: ruby-debuy19 is no longer maintained, use https://github.com/cldwalker/debugger
# Install with:
# bash < <(curl -L https://raw.github.com/gist/2983961)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
echo "Installing ruby-debug with ruby-1.9.3-p194 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem