Sha256: 459a50f73488d7f77b9c7f8c1716b599083c640c420e57f7c876ddf2e96833e9

Contents?: true

Size: 406 Bytes

Versions: 27

Compression:

Stored size: 406 Bytes

Contents

# used for OracleSynonymTest, see test/synonym_test_oracle.rb
#
class Subject < ActiveRecord::Base

  # 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

  protected
    def set_email_address
      unless self.persisted?
        self.author_email_address = 'test@test.com'
      end
    end

end

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
ibm_db-5.5.0 test/models/subject.rb
ibm_db-5.4.1 test/models/subject.rb
ibm_db-5.4.0 test/models/subject.rb
ibm_db-5.3.2 test/models/subject.rb
ibm_db-5.3.1 test/models/subject.rb
ibm_db-5.2.0 test/models/subject.rb
ibm_db-5.1.0 test/models/subject.rb
ibm_db-5.0.5 test/models/subject.rb
ibm_db-5.0.4 test/models/subject.rb
ibm_db-5.0.3 test/models/subject.rb
ibm_db-5.0.2 test/models/subject.rb
ibm_db-4.0.0-x86-mingw32 test/models/subject.rb
ibm_db-4.0.0 test/models/subject.rb
ibm_db-3.0.4-x86-mingw32 test/models/subject.rb
ibm_db-3.0.4 test/models/subject.rb
ibm_db-3.0.3-x86-mingw32 test/models/subject.rb
ibm_db-3.0.3 test/models/subject.rb
ibm_db-3.0.2-x86-mingw32 test/models/subject.rb
ibm_db-3.0.2 test/models/subject.rb
activejob-lock-0.0.2 rails/activerecord/test/models/subject.rb