Supports `has_attribute?` on mock_model doubles

Fixes #956
Merge branch 'rails_4_0_4' into 2-99-maintenance