Skip to content

Commit

Permalink
adding a patch from grantr to silence everything completely, it wasn'…
Browse files Browse the repository at this point in the history
…t intercepting thigns early enough to omit log entries completely
  • Loading branch information
atmos committed May 6, 2008
1 parent 677da62 commit d06c0d2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/controllers/fitter_happier_controller.rb
Expand Up @@ -3,8 +3,16 @@ class FitterHappierController < ActionController::Base
layout nil

def index
render :text => 'Hai!' and return
end

private

def process_with_silence(*args)
logger.silence do
render :text => 'Hai!' and return
process_without_silence(*args)
end
end

alias_method_chain :process, :silence
end

0 comments on commit d06c0d2

Please sign in to comment.