diff options
author | Rich Cavanaugh <rich@withoutscope.com> | 2008-08-15 21:49:22 -0400 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-09-13 11:41:14 +0200 |
commit | 113de01eaf48f64d2adf9f34d699e51619af616f (patch) | |
tree | 8d24c2f6fb226604a609773d5a5a2e14897baf38 /activerecord/test/models | |
parent | fcf31cb7521ba7de0aae972ac2ddfc80e3e7dfce (diff) | |
download | rails-113de01eaf48f64d2adf9f34d699e51619af616f.tar.gz rails-113de01eaf48f64d2adf9f34d699e51619af616f.tar.bz2 rails-113de01eaf48f64d2adf9f34d699e51619af616f.zip |
Allow for the dirty tracking to work with the aliased name of aliased attributes.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#812 state:committed]
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/parrot.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/parrot.rb b/activerecord/test/models/parrot.rb index 65191c1aa5..b9431fd1c0 100644 --- a/activerecord/test/models/parrot.rb +++ b/activerecord/test/models/parrot.rb @@ -3,6 +3,7 @@ class Parrot < ActiveRecord::Base has_and_belongs_to_many :pirates has_and_belongs_to_many :treasures has_many :loots, :as => :looter + alias_attribute :title, :name end class LiveParrot < Parrot |