mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
1ea61cb9bc
It should not save the parent record when the nested attributes are invalid. Test case to cover #8194.
5 lines
94 B
Ruby
5 lines
94 B
Ruby
class Electron < ActiveRecord::Base
|
|
belongs_to :molecule
|
|
|
|
validates_presence_of :name
|
|
end
|