aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/fixtures/developer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/test/fixtures/developer.rb')
-rw-r--r--actionview/test/fixtures/developer.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/actionview/test/fixtures/developer.rb b/actionview/test/fixtures/developer.rb
new file mode 100644
index 0000000000..cb7ee49eed
--- /dev/null
+++ b/actionview/test/fixtures/developer.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+class Developer < ActiveRecord::Base
+ has_and_belongs_to_many :projects
+ has_many :replies
+ has_many :topics, through: :replies
+ accepts_nested_attributes_for :projects
+end