diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-07-18 07:54:48 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-21 14:55:57 +0200 |
commit | 992711a86bc4ddd4460f9067e49eea36b37ca94f (patch) | |
tree | 230b419c54ec4633ea033c847a7a8b81ea7a9683 /activerecord/test/models | |
parent | c96a50539121c4a722f354220c7f0e314b24804d (diff) | |
download | rails-992711a86bc4ddd4460f9067e49eea36b37ca94f.tar.gz rails-992711a86bc4ddd4460f9067e49eea36b37ca94f.tar.bz2 rails-992711a86bc4ddd4460f9067e49eea36b37ca94f.zip |
update_attribute should not update readonly attributes
[#5106 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/minivan.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/test/models/minivan.rb b/activerecord/test/models/minivan.rb index c753319a20..602438d16f 100644 --- a/activerecord/test/models/minivan.rb +++ b/activerecord/test/models/minivan.rb @@ -3,4 +3,7 @@ class Minivan < ActiveRecord::Base belongs_to :speedometer has_one :dashboard, :through => :speedometer -end
\ No newline at end of file + + attr_readonly :color + +end |