Sha256: b837f90a017cd302f439fc0654c9252b70d23fd6be2693d5915b92f84aa910cb

Contents?: true

Size: 258 Bytes

Versions: 127

Compression:

Stored size: 258 Bytes

Contents

class Citation < ActiveRecord::Base
  belongs_to :reference_of, :class_name => "Book", :foreign_key => :book2_id

  belongs_to :book1, :class_name => "Book", :foreign_key => :book1_id
  belongs_to :book2, :class_name => "Book", :foreign_key => :book2_id
end

Version data entries

127 entries across 124 versions & 24 rubygems

Version Path
radiant-0.8.1 vendor/rails/activerecord/test/models/citation.rb
activerecord-2.3.4 test/models/citation.rb
activerecord-2.3.3 test/models/citation.rb
activerecord-1.15.6 test/fixtures/citation.rb
activerecord-2.0.5 test/fixtures/citation.rb
activerecord-2.0.2 test/fixtures/citation.rb
activerecord-2.0.1 test/fixtures/citation.rb
activerecord-2.0.0 test/fixtures/citation.rb
activerecord-2.0.4 test/fixtures/citation.rb
activerecord-2.1.2 test/models/citation.rb
activerecord-2.1.0 test/models/citation.rb
activerecord-2.3.2 test/models/citation.rb
activerecord-2.1.1 test/models/citation.rb
activerecord-2.2.2 test/models/citation.rb
antfarm-0.3.0 rails/vendor/rails/activerecord/test/models/citation.rb
antfarm-0.4.0 rails/vendor/rails/activerecord/test/models/citation.rb
radiant-0.6.5.1 vendor/rails/activerecord/test/fixtures/citation.rb
radiant-0.6.5 vendor/rails/activerecord/test/fixtures/citation.rb
radiant-0.6.7 vendor/rails/activerecord/test/fixtures/citation.rb
radiant-0.6.6 vendor/rails/activerecord/test/fixtures/citation.rb