# Alias attribute and the dirty methods (\_changed? etc)

**URL:** <https://www.ruby-forum.com/t/alias-attribute-and-the-dirty-methods-changed-etc/146108>\
**Category:** Rails\
**Created:** [August 18, 2008, 1:23am UTC](https://www.ruby-forum.com/t/alias-attribute-and-the-dirty-methods-changed-etc/146108 "2008-08-18T01:23:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![timhunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/71e660/32.png) [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Post date:** [August 18, 2008, 1:23am UTC](https://www.ruby-forum.com/t/alias-attribute-and-the-dirty-methods-changed-etc/146108/1 "2008-08-18T01:23:48Z")

</div>

Rails currently doesn’t support the dirty methods for an attribute  
alias’s.

i.e. if you setup an alias called title  
(alias\_attribute :title, :name) then title\_changed? isn’t defined.

Rich has written a simple patch so the dirty methods are defined for  
attribute alias’s →   
[http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/812](http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/812)

Please +1 it if you’d find it useful.

Thanks Rich

Tim.
