use to_s to compare attribute_names

Fix hzamani/acts_as_relation#79