Add initializer for patching rails security.