diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-05 00:45:17 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-08 23:29:16 -0300 |
commit | 7cd4063162e47e28715cafc021241f14cf8a278d (patch) | |
tree | 75a02c5a9abb66bbcb1e2c83627d2d7a8777ee49 /activerecord/test/models/person.rb | |
parent | 94b2c8c32d00e101b306875b86abf11b28b55699 (diff) | |
download | rails-7cd4063162e47e28715cafc021241f14cf8a278d.tar.gz rails-7cd4063162e47e28715cafc021241f14cf8a278d.tar.bz2 rails-7cd4063162e47e28715cafc021241f14cf8a278d.zip |
Add test case to has_many through association when mass_assignment_sanitizer is
:strict
Conflicts:
activerecord/test/models/person.rb
Diffstat (limited to 'activerecord/test/models/person.rb')
-rw-r--r-- | activerecord/test/models/person.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb index 36eb08d02f..dcfea3170c 100644 --- a/activerecord/test/models/person.rb +++ b/activerecord/test/models/person.rb @@ -1,8 +1,10 @@ class Person < ActiveRecord::Base has_many :readers + has_many :secure_readers has_one :reader has_many :posts, :through => :readers + has_many :secure_posts, :through => :secure_readers has_many :posts_with_no_comments, :through => :readers, :source => :post, :include => :comments, :conditions => 'comments.id is null' has_many :references |