This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-github
/
rails--rails
Watch
1
Star
0
Fork
You've already forked rails--rails
0
mirror of
https://github.com/rails/rails.git
synced
2022-11-09 12:12:34 -05:00
Code
Releases
Activity
8fee923888
rails--rails
/
activerecord
/
test
/
models
/
electron.rb
6 lines
94 B
Ruby
Raw
Normal View
History
Unescape
Escape
Eager loading an association should not change the count of children [#4971 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-26 15:12:36 -04:00
class
Electron
<
ActiveRecord
::
Base
belongs_to
:molecule
Add test case for autosave HasMany with accepts_nested_attributes. It should not save the parent record when the nested attributes are invalid. Test case to cover #8194.
2014-02-08 15:46:32 -05:00
validates_presence_of
:name
Eager loading an association should not change the count of children [#4971 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-26 15:12:36 -04:00
end
Copy permalink