aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/molecule.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/molecule.rb')
-rw-r--r--activerecord/test/models/molecule.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/molecule.rb b/activerecord/test/models/molecule.rb
new file mode 100644
index 0000000000..26870c8f88
--- /dev/null
+++ b/activerecord/test/models/molecule.rb
@@ -0,0 +1,6 @@
+class Molecule < ActiveRecord::Base
+ belongs_to :liquid
+ has_many :electrons
+
+ accepts_nested_attributes_for :electrons
+end