Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Reverse related artefacts aren't used or needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
threedaymonk committed Apr 24, 2012
1 parent e2f6752 commit 3685bfc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/models/artefact.rb
Expand Up @@ -13,7 +13,6 @@ class Artefact < ActiveRecord::Base
].freeze

has_many :related_items, :foreign_key => :source_artefact_id, :order => 'sort_key ASC', :dependent => :destroy
has_many :reverse_related_items, :foreign_key => :artefact_id, :class_name => 'RelatedItem', :order => 'sort_key ASC', :dependent => :destroy
has_many :related_artefacts, :through => :related_items, :source => :artefact
belongs_to :contact

Expand Down

0 comments on commit 3685bfc

Please sign in to comment.