Sha256: 138e8858fa191c09be58c64709747eb4e4d346714222614d375442018177c784

Contents?: true

Size: 334 Bytes

Versions: 10

Compression:

Stored size: 334 Bytes

Contents

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

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

      def content
        escape(@session.inspect)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
ceritium-rails-footnotes-3.4.1.1 lib/rails-footnotes/notes/session_note.rb
ceritium-rails-footnotes-3.4.1 lib/rails-footnotes/notes/session_note.rb
ceritium-rails-footnotes-3.4 lib/rails-footnotes/notes/session_note.rb
josevalim-rails-footnotes-3.3.1 lib/notes/session_note.rb
josevalim-rails-footnotes-3.3.2 lib/notes/session_note.rb
josevalim-rails-footnotes-3.4.1 lib/rails-footnotes/notes/session_note.rb
josevalim-rails-footnotes-3.4 lib/rails-footnotes/notes/session_note.rb
lexrupy-rails-footnotes-3.3.2 lib/rails-footnotes/notes/session_note.rb
lexrupy-rails-footnotes-3.4.1 lib/rails-footnotes/notes/session_note.rb
lexrupy-rails-footnotes-3.4 lib/rails-footnotes/notes/session_note.rb