Class | Footnotes::Extensions::Sql |
In: |
lib/rails-footnotes/notes/queries_note.rb
|
Parent: | Object |
explain | [RW] | |
name | [RW] | |
query | [RW] | |
time | [RW] | |
trace | [RW] | |
type | [RW] |
# File lib/rails-footnotes/notes/queries_note.rb, line 85 def initialize(type, name, time, query, explain) @type = type @name = name @time = time @query = query @explain = explain # Strip, select those ones from app and reject first two, because they are from the plugin @trace = Kernel.caller.collect(&:strip).select{|i| i.gsub!(/^#{RAILS_ROOT}\//im, '') }[2..-1] end