use has_attribute? as per https://github.com/rails/rails/issues/4208

The `raise_on_missing_attribute ` seems not to be working. I only tested on rails 3.2.11

It seems the current behavior is `respond_to?` will always return true so `has_attribute?` is recommended. 

I put this together very quickly. Let me know if further investigation or code is required.