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