Class: Footnotes::Notes::LogNote
- Inherits:
-
AbstractNote
- Object
- AbstractNote
- Footnotes::Notes::LogNote
- Defined in:
- lib/rails-footnotes/notes/log_note.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(controller) ⇒ LogNote
constructor
A new instance of LogNote.
Methods inherited from AbstractNote
close!, #has_fieldset?, included?, #javascript, #legend, #link, #onclick, #row, start!, #stylesheet, #title, title, #to_sym, to_sym, #valid?
Constructor Details
#initialize(controller) ⇒ LogNote
Returns a new instance of LogNote.
6 7 8 |
# File 'lib/rails-footnotes/notes/log_note.rb', line 6 def initialize(controller) @controller = controller end |
Instance Method Details
#content ⇒ Object
10 11 12 |
# File 'lib/rails-footnotes/notes/log_note.rb', line 10 def content escape(log_tail).gsub("\n","<br />") end |