Sha256: d01277a60016f80c6462ccfcb8ada1aff431614a4bd790be86cb8774763ace6d

Contents?: true

Size: 362 Bytes

Versions: 10

Compression:

Stored size: 362 Bytes

Contents

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

module Footnotes
  module Notes
    class ParamsNote < AbstractNote
      def initialize(controller)
        @params = controller.params.symbolize_keys
      end

      def title
        "Params (#{@params.length})"
      end

      def content
        mount_table_for_hash(@params)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 5 rubygems

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