Skip to content

Instantly share code, notes, and snippets.

View TheDudeWithTheThing's full-sized avatar
🎯
Focusing

Shaun Butler TheDudeWithTheThing

🎯
Focusing
View GitHub Profile
@nhance
nhance / method_logger.rb
Created September 6, 2012 12:58
Rails compatible method logging. Use this to log all calls to instance methods of a class to the log.
Model.new.foo
# This configuration was generated by `rubocop --auto-gen-config`.
# The point is for the user to remove these configuration records
# one by one as the offences are removed from the code base.
AllCops:
Excludes:
- !ruby/regexp /\/db\/schema\.rb$/
AccessorMethodName:
Enabled: true
@ewherrmann
ewherrmann / resque.rake
Last active July 2, 2020 00:36
Collection of Resque related custom rake tasks from around the web
require 'resque/tasks'
namespace :resque do
def del(key)
Resque.redis.keys(key).each { |k| Resque.redis.del(k) }
end
desc "Resque setup according to installation guide"
task :setup => :environment