diff options
Diffstat (limited to 'activerecord/test/models/subject.rb')
-rw-r--r-- | activerecord/test/models/subject.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/subject.rb b/activerecord/test/models/subject.rb index 29e290825e..504f68a296 100644 --- a/activerecord/test/models/subject.rb +++ b/activerecord/test/models/subject.rb @@ -5,7 +5,7 @@ class Subject < ActiveRecord::Base # as otherwise synonym test was failing after_initialize :set_email_address - protected + private def set_email_address unless persisted? self.author_email_address = "test@test.com" |