Converting attr(data) to data()

Fix related to [Issue 390](https://github.com/bernat/best_in_place/issues/390)