lib/rails-footnotes/footnotes.rb in josevalim-rails-footnotes-3.4.1 vs lib/rails-footnotes/footnotes.rb in josevalim-rails-footnotes-3.5.0

- old
+ new

@@ -3,15 +3,20 @@ @@no_style = false @@multiple_notes = false @@klasses = [] # Default link prefix is textmate - @@prefix = 'txmt://open?url=file://%s&line=%d&column=%d' + @@prefix = 'txmt://open?url=file://%s&amp;line=%d&amp;column=%d' # Edit notes @@notes = [ :controller, :view, :layout, :stylesheets, :javascripts ] # Show notes - @@notes += [ :session, :cookies, :params, :filters, :routes, :env, :queries, :log, :general ] + @@notes += [ :session, :cookies, :params, :filters, :routes, :env, :log, :general ] + if defined?(NewRelic) + @@notes << :rpm + else + @@notes << :queries + end # :no_style => If you don't want the style to be appended to your pages # :notes => Class variable that holds the notes to be processed # :prefix => Prefix appended to FootnotesLinks # :multiple_notes => Set to true if you want to open several notes at the same time