2009-03-22 18:25:58 -04:00
|
|
|
# used for OracleSynonymTest, see test/synonym_test_oracle.rb
|
2005-07-24 10:01:35 -04:00
|
|
|
#
|
|
|
|
class Subject < ActiveRecord::Base
|
2010-09-09 17:13:14 -04:00
|
|
|
# added initialization of author_email_address in the same way as in Topic class
|
|
|
|
# as otherwise synonym test was failing
|
|
|
|
after_initialize :set_email_address
|
|
|
|
|
2009-03-22 18:25:58 -04:00
|
|
|
protected
|
2010-09-09 17:13:14 -04:00
|
|
|
def set_email_address
|
2016-08-07 19:05:28 -04:00
|
|
|
unless persisted?
|
2016-08-06 12:26:20 -04:00
|
|
|
self.author_email_address = "test@test.com"
|
2009-03-22 18:25:58 -04:00
|
|
|
end
|
|
|
|
end
|
2005-07-24 10:01:35 -04:00
|
|
|
end
|