Show deprecated warning when using attr and attr_set