Sha256: 9c8bcd9e0de975c79d06f591cfcf67f870a04eb55d657991807508ef34683dc3
Contents?: true
Size: 640 Bytes
Versions: 21
Compression:
Stored size: 640 Bytes
Contents
module Footnotes module Notes class ViewNote < AbstractNote def initialize(controller) @controller = controller @template = controller.instance_variable_get(:@template) end def row :edit end def link escape(Footnotes::Filter.prefix(filename, 1, 1)) end def valid? prefix? && first_render? end protected def first_render? @template.instance_variable_get(:@_first_render) end def filename @filename ||= @template.instance_variable_get(:@_first_render).filename end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
rails-footnotes-3.7.3 | lib/rails-footnotes/notes/view_note.rb |