2009-03-22 22:25:58 +00:00
|
|
|
# used for OracleSynonymTest, see test/synonym_test_oracle.rb
|
2005-07-24 14:01:35 +00:00
|
|
|
#
|
|
|
|
class Subject < ActiveRecord::Base
|
2010-09-09 21:13:14 +00: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 22:25:58 +00:00
|
|
|
protected
|
2010-09-09 21:13:14 +00:00
|
|
|
def set_email_address
|
2010-11-07 14:05:18 +00:00
|
|
|
unless self.persisted?
|
2009-03-22 22:25:58 +00:00
|
|
|
self.author_email_address = 'test@test.com'
|
|
|
|
end
|
|
|
|
end
|
2010-09-09 21:13:14 +00:00
|
|
|
|
2005-07-24 14:01:35 +00:00
|
|
|
end
|