Created
January 19, 2012 02:25
-
-
Save ppworks/1637289 to your computer and use it in GitHub Desktop.
rails task template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :hoge do | |
desc 'fugo' | |
task :fugo => :environment do | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
puts Benchmark::CAPTION | |
Benchmark.bm do |x| | |
x.report("all\n") { | |
} | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment