Added CheckPending middleware in default

As this middleware comes by default in a new
rails app