josevalim/rails-footnotes — pull request #60 by thetamind (2011-10-14 19:54:05+00:00)
Title: Fix exception when controller_filename is nil

Using 3.7.5 with Rails 3.1.1 and ActiveAdmin 0.3.2

Footnotes Footnotes::Notes::ControllerNote Exception: can't convert nil into String
/lib/rails-footnotes/notes/controller_note.rb:17:in `exists?'
/lib/rails-footnotes/notes/controller_note.rb:17:in `valid?'
/lib/rails-footnotes/footnotes.rb:133:in `block in initialize_notes!'
/lib/rails-footnotes/footnotes.rb:62:in `block in each_with_rescue'
/lib/rails-footnotes/footnotes.rb:60:in `each'
/lib/rails-footnotes/footnotes.rb:60:in `each_with_rescue'
/lib/rails-footnotes/footnotes.rb:355:in `each_with_rescue'
/lib/rails-footnotes/footnotes.rb:131:in `initialize_notes!'
/lib/rails-footnotes/footnotes.rb:125:in `add_footnotes_without_validation!'
/lib/rails-footnotes/footnotes.rb:102:in `add_footnotes!'