Sha256: 55578e7aa787b97bb6c1d536fb509818d8ce71bd588e14ee2fa89d1e084aa949

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

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(Footnotes.view_subscriber.view, 1, 1))
      end

      def valid?
        prefix? && filename
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails3-footnotes-4.0.0.pre.6 lib/rails-footnotes/notes/view_note.rb