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
|
2010-11-07 09:05:18 -05:00
|
|
|
unless self.persisted?
|
2009-03-22 18:25:58 -04:00
|
|
|
self.author_email_address = 'test@test.com'
|
|
|
|
end
|
|
|
|
end
|
2010-09-09 17:13:14 -04:00
|
|
|
|
2005-07-24 10:01:35 -04:00
|
|
|
end
|