aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/organization.rb
diff options
context:
space:
mode:
authorMatt Jones <al2o3cr@gmail.com>2008-11-15 01:59:12 -0500
committerMichael Koziarski <michael@koziarski.com>2008-11-15 18:20:39 +0100
commitd3fd9971093101712e4cc97ccc534631888b673d (patch)
tree5a26a28aeef593529ee7acf952da57ef7f0fe3c7 /activerecord/test/models/organization.rb
parent31be959de746da0b704684e858d1ca69dbf6bf7f (diff)
downloadrails-d3fd9971093101712e4cc97ccc534631888b673d.tar.gz
rails-d3fd9971093101712e4cc97ccc534631888b673d.tar.bz2
rails-d3fd9971093101712e4cc97ccc534631888b673d.zip
fix assignment to has_one :through associations.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/test/models/organization.rb')
-rw-r--r--activerecord/test/models/organization.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/organization.rb b/activerecord/test/models/organization.rb
new file mode 100644
index 0000000000..d79d5037c8
--- /dev/null
+++ b/activerecord/test/models/organization.rb
@@ -0,0 +1,4 @@
+class Organization < ActiveRecord::Base
+ has_many :member_details
+ has_many :members, :through => :member_details
+end \ No newline at end of file