Skip to content

Commit

Permalink
Deprecate Rails::Rack::LogTailer
Browse files Browse the repository at this point in the history
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 84a13e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions railties/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 4 additions & 0 deletions railties/lib/rails/rack/log_tailer.rb
Original file line number Diff line number Diff line change
@@ -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 = Pathname.new(log || "#{::File.expand_path(Rails.root)}/log/#{Rails.env}.log").cleanpath
Expand Down

0 comments on commit 84a13e0

Please sign in to comment.