1ea61cb9bc
It should not save the parent record when the nested attributes are invalid. Test case to cover #8194.
7 lines
127 B
Ruby
7 lines
127 B
Ruby
class Molecule < ActiveRecord::Base
|
|
belongs_to :liquid
|
|
has_many :electrons
|
|
|
|
accepts_nested_attributes_for :electrons
|
|
end
|