use trhow/catch to impl restrict feature.
rename.
build a gem to move DummyMiddleware to gem_foo.
inside actiondispatch.