aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-05-26 12:54:38 -0700
committerJon Leighton <j@jonathanleighton.com>2011-05-26 12:54:38 -0700
commit09e431aa893bb1d08705381e2bfcd006de22a70e (patch)
tree746bcadc52e2886b725183fd54b0b22c731c8795 /activerecord/lib/active_record/associations.rb
parent0731945e74380176d3af91549f09882814694260 (diff)
parentded7e35cb021512124f491c5ee90aa52829f9932 (diff)
downloadrails-09e431aa893bb1d08705381e2bfcd006de22a70e.tar.gz
rails-09e431aa893bb1d08705381e2bfcd006de22a70e.tar.bz2
rails-09e431aa893bb1d08705381e2bfcd006de22a70e.zip
Merge pull request #1318 from TheEmpty/master
Resolve issue #534
Diffstat (limited to 'activerecord/lib/active_record/associations.rb')
-rw-r--r--activerecord/lib/active_record/associations.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 1c7209e64e..a0a1ff23db 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -76,12 +76,6 @@ module ActiveRecord
end
end
- class HasAndBelongsToManyAssociationWithPrimaryKeyError < ActiveRecordError #:nodoc:
- def initialize(reflection)
- super("Primary key is not allowed in a has_and_belongs_to_many join table (#{reflection.options[:join_table]}).")
- end
- end
-
class HasAndBelongsToManyAssociationForeignKeyNeeded < ActiveRecordError #:nodoc:
def initialize(reflection)
super("Cannot create self referential has_and_belongs_to_many association on '#{reflection.class_name rescue nil}##{reflection.name rescue nil}'. :association_foreign_key cannot be the same as the :foreign_key.")