Skip to content

Instantly share code, notes, and snippets.

@anoras
anoras / gist:4655561
Last active December 11, 2015 20:28 — forked from spovich/gist:1848409
# Install with:
# bash < <(curl -L https://raw.github.com/gist/4655561)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
echo "Installing ruby-debug with ruby-1.9.3-374 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
@anoras
anoras / mongo_paperclip.rb
Created August 3, 2010 12:14 — forked from anlek/mongo_paperclip.rb
Patching Paperclip to work with MongoMapper
module Paperclip
class << self
def logger #:nodoc:
# Paperclip depends on having a logger available, so let's create a nice fallback chain...
MongoMapper.logger || Rails.logger || Logger.new(STDOUT)
end
end
module ClassMethods
def has_attached_file name, options = {}