aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-10-19 17:29:19 +0100
committerJon Leighton <j@jonathanleighton.com>2010-10-19 17:29:19 +0100
commit7ee33b80a2048ec3801f02018b0ea81d2abe0011 (patch)
treebc11630ed846fe40ebf3668eed37c1ec96ded05c /activerecord/lib/active_record/associations.rb
parent82b889f7d37249adaa606558d4c05356b3e84d9a (diff)
downloadrails-7ee33b80a2048ec3801f02018b0ea81d2abe0011.tar.gz
rails-7ee33b80a2048ec3801f02018b0ea81d2abe0011.tar.bz2
rails-7ee33b80a2048ec3801f02018b0ea81d2abe0011.zip
Remove various comments and code which were just being used during the development of nested through association support (OMFGZ, I might just have nearly finished this\!
Diffstat (limited to 'activerecord/lib/active_record/associations.rb')
-rw-r--r--activerecord/lib/active_record/associations.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 028157d7e9..44d3258c40 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -39,14 +39,6 @@ module ActiveRecord
end
end
- class HasManyThroughSourceAssociationMacroError < ActiveRecordError #:nodoc:
- def initialize(reflection)
- through_reflection = reflection.through_reflection
- source_reflection = reflection.source_reflection
- super("Invalid source reflection macro :#{source_reflection.macro}#{" :through" if source_reflection.options[:through]} for has_many #{reflection.name.inspect}, :through => #{through_reflection.name.inspect}. Use :source to specify the source reflection.")
- end
- end
-
class HasManyThroughCantAssociateThroughHasOneOrManyReflection < ActiveRecordError #:nodoc:
def initialize(owner, reflection)
super("Cannot modify association '#{owner.class.name}##{reflection.name}' because the source reflection class '#{reflection.source_reflection.class_name}' is associated to '#{reflection.through_reflection.class_name}' via :#{reflection.source_reflection.macro}.")