Skip to content

Instantly share code, notes, and snippets.

@andruby
Created August 17, 2011 17:47
Show Gist options
  • Select an option

  • Save andruby/1152122 to your computer and use it in GitHub Desktop.

Select an option

Save andruby/1152122 to your computer and use it in GitHub Desktop.
Rails-footnotes fixes for Rails 3.1 (put it in an initializer)
if defined?(Footnotes) && Rails.env.development?
Footnotes.run!
Footnotes::Filter.notes -= [:cookies, :session]
Footnotes::Notes::AssignsNote.ignored_assigns += [:@_view_renderer, :@_response_body, :@_routes, :@_view_context_class]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment