From c9c7ee7710a637e1dd3c1d4be3960fe22f8ee3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 5 Mar 2012 17:00:48 -0300 Subject: Not need to pass join attributes to association build --- activerecord/test/models/reader.rb | 9 +++++++++ activerecord/test/models/secure_reader.rb | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 activerecord/test/models/secure_reader.rb (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/reader.rb b/activerecord/test/models/reader.rb index 0207a2bd92..59005ac604 100644 --- a/activerecord/test/models/reader.rb +++ b/activerecord/test/models/reader.rb @@ -3,3 +3,12 @@ class Reader < ActiveRecord::Base belongs_to :person, :inverse_of => :readers belongs_to :single_person, :class_name => 'Person', :foreign_key => :person_id, :inverse_of => :reader end + +class SecureReader < ActiveRecord::Base + self.table_name = "readers" + + belongs_to :secure_post, :class_name => "Post", :foreign_key => "post_id" + belongs_to :secure_person, :inverse_of => :secure_readers, :class_name => "Person", :foreign_key => "person_id" + + attr_accessible nil +end diff --git a/activerecord/test/models/secure_reader.rb b/activerecord/test/models/secure_reader.rb deleted file mode 100644 index 3a2a8496fd..0000000000 --- a/activerecord/test/models/secure_reader.rb +++ /dev/null @@ -1,9 +0,0 @@ -class SecureReader < ActiveRecord::Base - self.table_name = "readers" - - belongs_to :secure_post, :class_name => "Post", :foreign_key => "post_id" - belongs_to :secure_person, :inverse_of => :secure_readers, :class_name => "Person", :foreign_key => "person_id" - - - attr_accessible nil -end -- cgit v1.2.3