Sha256: fd0ba1152fa5e92d894b8e3b3fada8815b05c04b0324a4c67a0c534b58b15a67
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
class RequestLogAnalyzer::Database::Request < RequestLogAnalyzer::Database::Base # Returns an array of all the Line objects of this request in the correct order. def lines @lines ||= begin lines = [] self.class.reflections.each { |r, _d| lines += send(r).all } lines.sort end end # Creates the table to store requests in. def self.create_table! unless database.connection.table_exists?(:requests) database.connection.create_table(:requests) do |t| t.column :first_lineno, :integer t.column :last_lineno, :integer end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
request-log-analyzer-1.13.4 | lib/request_log_analyzer/database/request.rb |
request-log-analyzer-1.13.3 | lib/request_log_analyzer/database/request.rb |