diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-03-23 00:25:58 +0200 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-08-06 23:41:00 +0300 |
commit | 090ec47bec21261ea867fbca686bba132f01834d (patch) | |
tree | f0903c9a0cf15c022c2e124782c306b667c19f23 | |
parent | 01a4e07c3625fc2985ca7f2cce40c9d34b1728f8 (diff) | |
download | rails-090ec47bec21261ea867fbca686bba132f01834d.tar.gz rails-090ec47bec21261ea867fbca686bba132f01834d.tar.bz2 rails-090ec47bec21261ea867fbca686bba132f01834d.zip |
added Subject#after_initialize to be the same as Topic#after_initialize
-rw-r--r-- | activerecord/test/models/subject.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/activerecord/test/models/subject.rb b/activerecord/test/models/subject.rb index 3502943f3a..1b9d8107f8 100644 --- a/activerecord/test/models/subject.rb +++ b/activerecord/test/models/subject.rb @@ -1,4 +1,12 @@ -# used for OracleSynonymTest, see test/synonym_test_oci.rb +# used for OracleSynonymTest, see test/synonym_test_oracle.rb # class Subject < ActiveRecord::Base + protected + # added initialization of author_email_address in the same way as in Topic class + # as otherwise synonym test was failing + def after_initialize + if self.new_record? + self.author_email_address = 'test@test.com' + end + end end |