Class: MerbFootnotes::Notes::ControllerNote
Instance Method Summary
collapse
close!, #fieldset?, included?, #included?, #javascript, #legend, #onclick, start!, #stylesheet, #title, title, #to_sym, to_sym
Constructor Details
Returns a new instance of ControllerNote.
6
7
8
|
# File 'lib/merb_footnotes/notes/controller_note.rb', line 6
def initialize(controller)
@controller = controller
end
|
Instance Method Details
#link ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/merb_footnotes/notes/controller_note.rb', line 14
def link
escape(
Merb::Plugins.config[:merb_footnotes][:prefix] +
controller_filename +
(index_of_method ? "&line=#{controller_line_number + 1}&column=3" : '')
)
end
|
#row ⇒ Object
10
11
12
|
# File 'lib/merb_footnotes/notes/controller_note.rb', line 10
def row
:edit
end
|
#valid? ⇒ Boolean
22
23
24
|
# File 'lib/merb_footnotes/notes/controller_note.rb', line 22
def valid?
prefix?
end
|