Sha256: 66e22ea617d9749fd6a214a76a58def1a68a3e3cbf2ec85dc13ff7d8cbc40e23
Contents?: true
Size: 691 Bytes
Versions: 21
Compression:
Stored size: 691 Bytes
Contents
require "#{File.dirname(__FILE__)}/abstract_note" 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 & 7 rubygems