updated respond_to check for callback to work for protected and private methods ruby 2.0