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-05 16:58:19 -0300 |
commit | e9bf0e3157fcc15f3520559a34bbfdd894dd8112 (patch) | |
tree | 28fd3bc8841a69e0e78d3e3abbe11484fb7a79f5 /activerecord/test/models/person.rb | |
parent | c97a1666910aa82b9c4348402cc8f52492b58692 (diff) | |
download | rails-e9bf0e3157fcc15f3520559a34bbfdd894dd8112.tar.gz rails-e9bf0e3157fcc15f3520559a34bbfdd894dd8112.tar.bz2 rails-e9bf0e3157fcc15f3520559a34bbfdd894dd8112.zip |
Add test case to has_many through association when mass_assignment_sanitizer is
:strict
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 d2a0c6b40c..84bc901b5e 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', :references => :comments |