Sha256: e69017d89ef604021cb2e9ad379fc4aad4453352582bf368ea5f4eed97adeb07

Contents?: true

Size: 357 Bytes

Versions: 22

Compression:

Stored size: 357 Bytes

Contents

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, :summary => "Debug information for #{title}")
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rails-footnotes-4.1.7 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.1.6 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.1.5 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.1.4 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.1.3 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.1.2 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.1.1 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.1.0 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.0.2 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.0.1 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-4.0.0 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-3.7.9 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-3.7.8 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-3.7.7 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-3.7.6 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-3.7.5 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-3.7.5.rc4 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-3.7.5.rc3 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-3.7.5.rc2 lib/rails-footnotes/notes/params_note.rb
rails-footnotes-3.7.5.rc1 lib/rails-footnotes/notes/params_note.rb