Skip to content

Instantly share code, notes, and snippets.

@vidmantas
Created December 3, 2010 14:37
Show Gist options
  • Save vidmantas/727027 to your computer and use it in GitHub Desktop.
Save vidmantas/727027 to your computer and use it in GitHub Desktop.
if ENV and ENV['RAILS_ENV']
require 'hirb'
Hirb.enable
end
def ar_logger
ActiveRecord::Base.logger = Logger.new(STDOUT)
reload!
end
class Object
# Return only the methods not present on basic objects
def interesting_methods
(self.methods - Object.new.methods).sort
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment