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!, #has_fieldset?, included?, #javascript, #link, #onclick, #row, start!, #stylesheet, #title, title, #to_sym, to_sym, #valid?
Constructor Details
#initialize(controller) ⇒ FiltersNote
Returns a new instance of FiltersNote.
6 7 8 9 |
# File 'lib/rails-footnotes/notes/filters_note.rb', line 6 def initialize(controller) @controller = controller @parsed_filters = parse_filters end |
Instance Method Details
#content ⇒ Object
15 16 17 |
# File 'lib/rails-footnotes/notes/filters_note.rb', line 15 def content mount_table(@parsed_filters.unshift([:name, :type, :actions])) end |
#legend ⇒ Object
11 12 13 |
# File 'lib/rails-footnotes/notes/filters_note.rb', line 11 def legend "Filter chain for #{@controller.class.to_s}" end |