require "#{File.dirname(__FILE__)}/abstract_note" require "#{File.dirname(__FILE__)}/../view_subscriber" module Footnotes module Notes class ViewNote < AbstractNote def row :edit end def link escape(Footnotes::Filter.prefix(filename, 1, 1)) end def valid? prefix? && filename end protected def filename Footnotes.view_subscriber.view end end end end