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
|
2009-03-22 22:25:58 +00:00
|
|
|
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
|
2005-07-24 14:01:35 +00:00
|
|
|
end
|