Class: Footnotes::Notes::FiltersNote
- Inherits:
- 
      AbstractNote
      
        - Object
- AbstractNote
- Footnotes::Notes::FiltersNote
 
- Defined in:
- lib/rails-footnotes/notes/filters_note.rb
Instance Method Summary collapse
- #content ⇒ Object
- 
  
    
      #initialize(controller)  ⇒ FiltersNote 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of FiltersNote. 
- #legend ⇒ Object
Methods inherited from AbstractNote
close!, #escape, #has_fieldset?, #hash_to_xml_attributes, included?, #javascript, #link, #mount_table, #mount_table_for_hash, #onclick, #prefix?, #row, start!, #stylesheet, #title, title, #to_sym, to_sym, #valid?
Constructor Details
#initialize(controller) ⇒ FiltersNote
Returns a new instance of FiltersNote.
| 4 5 6 7 | # File 'lib/rails-footnotes/notes/filters_note.rb', line 4 def initialize(controller) @controller = controller @parsed_filters = parse_filters end | 
Instance Method Details
#content ⇒ Object
| 13 14 15 | # File 'lib/rails-footnotes/notes/filters_note.rb', line 13 def content mount_table(@parsed_filters.unshift([:name, :type, :actions]), :summary => "Debug information for #{title}") end | 
#legend ⇒ Object
| 9 10 11 | # File 'lib/rails-footnotes/notes/filters_note.rb', line 9 def legend "Filter chain for #{@controller.class.to_s}" end |