search for: artisan_quote_input

Displaying 1 result from an estimated 1 matches for "artisan_quote_input".

2007 Jan 19
0
Do transactions fail with polymorphic has_one relationships?
...ph beneath it, like so: ArtisanQuoteInput has_one QuoteInput and then QuoteInput has several objects attached to it. Note that the relationship between ArtisanQuoteInput and QuoteInput is polymorphic, so the relationship in A is written has_one :quote_input, :as => :program_quote_input If @artisan_quote_input is an instance of ArtisanQuoteInput and I call @artisan_quote_input.save!, and just one of its attributes is invalid (meaning that @artisan_quote_input fails validation), what I see is that the quote_input object and all of its children save to the database successfully. Supposedly, according to A...