instance method
call
Ruby on Rails 2.2.3
Since v2.2.3Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# File railties/lib/rails/rack/logger.rb, line 13
def call(env)
response = @app.call(env)
::File.open(@path, 'r') do |f|
f.seek @cursor
if f.mtime > @last_checked
contents = f.read
@last_checked = f.mtime
@cursor += contents.length
print contents
end
end
response
end
Defined in railties/lib/rails/rack/logger.rb line 13
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Rack::Logger