Sha256: 506e4e639560289795cbfabc64f0766a948359f05d97a8875f951439df6d7015

Contents?: true

Size: 552 Bytes

Versions: 11

Compression:

Stored size: 552 Bytes

Contents

require "#{File.dirname(__FILE__)}/abstract_note"

module Footnotes
  module Notes
    class RpmNote < AbstractNote
      def initialize(controller)
        @rpm_id=NewRelic::Agent.instance.transaction_sampler.current_sample_id
      end

      def row
        :edit
      end

      def link
         #{:controller => 'newrelic', :action => 'show_sample_detail', :id => @rpm_id}
         "/newrelic/show_sample_detail/#{@rpm_id}"
      end
      
      def valid?
        !NewRelic::Config.instance['skip_developer_route']
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 5 rubygems

Version Path
artofmission-rails-footnotes-3.6.0.1 lib/rails-footnotes/notes/rpm_note.rb
artofmission-rails-footnotes-3.6.2 lib/rails-footnotes/notes/rpm_note.rb
josevalim-rails-footnotes-3.5.0 lib/rails-footnotes/notes/rpm_note.rb
josevalim-rails-footnotes-3.6.0 lib/rails-footnotes/notes/rpm_note.rb
josevalim-rails-footnotes-3.6.1 lib/rails-footnotes/notes/rpm_note.rb
josevalim-rails-footnotes-3.6.2 lib/rails-footnotes/notes/rpm_note.rb
omghax-rails-footnotes-3.6.1 lib/rails-footnotes/notes/rpm_note.rb
omghax-rails-footnotes-3.6.2 lib/rails-footnotes/notes/rpm_note.rb
rails-footnotes-3.6.5 lib/rails-footnotes/notes/rpm_note.rb
rails-footnotes-3.6.4 lib/rails-footnotes/notes/rpm_note.rb
rails-footnotes-linux-3.6.2 lib/rails-footnotes/notes/rpm_note.rb