attribute_alias?(new_name)
Is new_name an alias?
# File activemodel/lib/active_model/attribute_methods.rb, line 218 def attribute_alias?(new_name) attribute_aliases.key? new_name.to_s end