Skip to content
Browse files
Deprecate Rails::Rack::LogTailer
It was being used by Rails for show the development logs but since Rails
4 it is not being used anymore on the framework.

This class seems to be private but it were part of the public API we are
deprecating before removing.
  • Loading branch information
rafaelfranca committed Jun 18, 2014
1 parent 3999f9c commit 84a13e019e93efaa8994b3f8303d635a7702dbce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
@@ -1,3 +1,7 @@
* Deprecate `Rails::Rack::LogTailer` with not replacement.

*Rafael Mendonça França*

* Add a generic --skip-gems options to generator

This option is useful if users want to remove some gems like jbuilder,
@@ -1,7 +1,11 @@
require 'active_support/deprecation'

module Rails
module Rack
class LogTailer
def initialize(app, log = nil)
ActiveSupport::Deprecation.warn "LogTailer is deprecated and will be removed on Rails 5"

@app = app

path = || "#{::File.expand_path(Rails.root)}/log/#{Rails.env}.log").cleanpath

0 comments on commit 84a13e0

Please sign in to comment.