Try inserting middleware in application.rb
Try inserting middleware in application.rb

theodi/panopticon,theodi/panopticon,alphagov/panopticon,alphagov/panopticon,alphagov/panopticon,theodi/panopticon,theodi/panopticon,alphagov/panopticon