Class: Footnotes::Notes::ParamsNote
Instance Method Summary
collapse
close!, #escape, #has_fieldset?, #hash_to_xml_attributes, included?, #javascript, #legend, #link, #mount_table, #mount_table_for_hash, #onclick, #prefix?, #row, start!, #stylesheet, title, #to_sym, to_sym, #valid?
Constructor Details
#initialize(controller) ⇒ ParamsNote
4
5
6
|
# File 'lib/rails-footnotes/notes/params_note.rb', line 4
def initialize(controller)
@params = controller.params.symbolize_keys
end
|
Instance Method Details
#content ⇒ Object
12
13
14
|
# File 'lib/rails-footnotes/notes/params_note.rb', line 12
def content
mount_table_for_hash(@params, :summary => "Debug information for #{title}")
end
|
#title ⇒ Object
8
9
10
|
# File 'lib/rails-footnotes/notes/params_note.rb', line 8
def title
"Params (#{@params.length})"
end
|