Module: Footnotes::Extensions::AbstractAdapter

Defined in:
lib/rails-footnotes/notes/queries_note.rb

Instance Method Summary collapse

Instance Method Details

#log_silenceObject



123
124
125
126
127
128
129
130
131
132
133
# File 'lib/rails-footnotes/notes/queries_note.rb', line 123

def log_silence
  result = nil
  if @logger
    @logger.silence do
      result = yield
    end        
  else
    result = yield
  end
  result
end