Class: Footnotes::Notes::ViewNote
Instance Method Summary
collapse
close!, #has_fieldset?, included?, #javascript, #legend, #onclick, start!, #stylesheet, #title, title, #to_sym, to_sym
Constructor Details
#initialize(controller) ⇒ ViewNote
Returns a new instance of ViewNote.
6
7
8
9
|
# File 'lib/rails-footnotes/notes/view_note.rb', line 6
def initialize(controller)
@controller = controller
@template = controller.instance_variable_get(:@template)
end
|
Instance Method Details
#link ⇒ Object
15
16
17
|
# File 'lib/rails-footnotes/notes/view_note.rb', line 15
def link
escape(Footnotes::Filter.prefix(filename, 1, 1))
end
|
#row ⇒ Object
11
12
13
|
# File 'lib/rails-footnotes/notes/view_note.rb', line 11
def row
:edit
end
|
#valid? ⇒ Boolean
19
20
21
|
# File 'lib/rails-footnotes/notes/view_note.rb', line 19
def valid?
prefix? && first_render?
end
|