Sha256: 694a20f3228f8ba9d555f6c40c6fa808fcac8637266cee2c5e98ff0f803775c8

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

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

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

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

      def content
        mount_table_for_hash(@session)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
artofmission-rails-footnotes-3.6.0.1 lib/rails-footnotes/notes/session_note.rb
artofmission-rails-footnotes-3.6.2 lib/rails-footnotes/notes/session_note.rb
rails-footnotes-3.6.5 lib/rails-footnotes/notes/session_note.rb
rails-footnotes-3.6.4 lib/rails-footnotes/notes/session_note.rb