Sha256: e03dba5ea53698422b2928cfa3b62262897debc6f2cefa5c94007624003f127a

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

class RailsInfo::Logs::ServerController < RailsInfoController
  def new
    @rails_info_log = ::RailsInfo::Logs::ServerPresenter.new(view_context, log: params[:log], debug: params[:debug])
  end

  def update
    @rails_info_log = ::RailsInfo::Logs::ServerPresenter.new(view_context, log: params[:log], debug: params[:debug])
    render 'new'
  end
  
  def big
    @requests = []
    
    open('/Users/gawlim/workspace/mtvnn-sensei/log/production.log').read.split("\n").each do |line|
      if line.match('Started GET') && line.match('freewheel')
        @requests << line
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_info-0.1.1 app/controllers/rails_info/logs/server_controller.rb