Sha256: e30344d68a4dcc62badad9619fc9257a97e97c8b9c5c987bd011336f4d961578

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

require "#{File.dirname(__FILE__)}/abstract_note"

module Footnotes
  module Notes
    class SessionNote < AbstractNote
      def initialize(controller)
        @session = (controller.session || {}).symbolize_keys
      end

      def title
        "Session (#{@session.length})"
      end

      def content
        mount_table_for_hash(@session)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
josevalim-rails-footnotes-3.6.0 lib/rails-footnotes/notes/session_note.rb
josevalim-rails-footnotes-3.6.1 lib/rails-footnotes/notes/session_note.rb
josevalim-rails-footnotes-3.6.2 lib/rails-footnotes/notes/session_note.rb
omghax-rails-footnotes-3.6.1 lib/rails-footnotes/notes/session_note.rb
omghax-rails-footnotes-3.6.2 lib/rails-footnotes/notes/session_note.rb
rails-footnotes-linux-3.6.2 lib/rails-footnotes/notes/session_note.rb