lib/sinatra-footnotes.rb in sinatra-footnotes-0.1.1 vs lib/sinatra-footnotes.rb in sinatra-footnotes-0.1.2
- old
+ new
@@ -1,11 +1,11 @@
require 'sinatra-footnotes/version'
require 'sinatra/base'
require 'active_support/core_ext'
dir = File.dirname(__FILE__)
-%w[session cookies params sinatra_routes env assigns].each do |prefix|
+%w[session flash cookies params sinatra_routes env assigns].each do |prefix|
require File.join(dir, 'sinatra-footnotes', 'notes', "#{prefix}_note.rb")
end
module Sinatra
module Footnotes
@@ -67,9 +67,10 @@
response.body.push '<div id="footnotes_debug">'
response.body.push 'Show:'
notes = []
notes.push ::Footnotes::Notes::SessionNote.new(self)
+ notes.push ::Footnotes::Notes::FlashNote.new(self)
notes.push ::Footnotes::Notes::CookiesNote.new(self.request)
notes.push ::Footnotes::Notes::ParamsNote.new(self)
notes.push ::Footnotes::Notes::SinatraRoutesNote.new(app)
notes.push ::Footnotes::Notes::EnvNote.new(self)
notes.push(::Footnotes::Notes::AssignsNote.new(self).tap do |note|