aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/post.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-03-05 00:45:17 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-03-08 23:29:16 -0300
commit7cd4063162e47e28715cafc021241f14cf8a278d (patch)
tree75a02c5a9abb66bbcb1e2c83627d2d7a8777ee49 /activerecord/test/models/post.rb
parent94b2c8c32d00e101b306875b86abf11b28b55699 (diff)
downloadrails-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/post.rb')
-rw-r--r--activerecord/test/models/post.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb
index 1cab78d8c7..0fc22ac6a3 100644
--- a/activerecord/test/models/post.rb
+++ b/activerecord/test/models/post.rb
@@ -115,8 +115,10 @@ class Post < ActiveRecord::Base
has_many :named_categories, :through => :standard_categorizations
has_many :readers
+ has_many :secure_readers
has_many :readers_with_person, :include => :person, :class_name => "Reader"
has_many :people, :through => :readers
+ has_many :secure_people, :through => :secure_readers
has_many :single_people, :through => :readers
has_many :people_with_callbacks, :source=>:person, :through => :readers,
:before_add => lambda {|owner, reader| log(:added, :before, reader.first_name) },