modified attributes/middlewares.rb