Skip to content

Instantly share code, notes, and snippets.

@Nerdman4U
Nerdman4U / ar_autosave_association.rb
Created February 17, 2014 15:35
Autosave, inverse and nested record stack level too deep problem fix
module ActiveRecord
module AutosaveAssociation
# Structure is a nested hash containing symbol keys as a valid
# reflection names, use only hash values. If you use nil value and
# nested record class has own structure, that will be used instead.
#
# ==== Example
#
# class Foo