<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - ActiveRecord callback chain exception?]]></title>
		<link>http://railsforum.com/viewtopic.php?id=53207</link>
		<description><![CDATA[The most recent posts in ActiveRecord callback chain exception?.]]></description>
		<lastBuildDate>Wed, 20 Feb 2013 01:23:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[ActiveRecord callback chain exception?]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=160129#p160129</link>
			<description><![CDATA[<p>I&#039;m creating an ActiveRecord object A and want to update object B during the process even if the creation of object A is rolled back due to a before_create callback returning false.</p><p>Is there a way for me to do this?</p><p>It seems that once you&#039;re in the ActiveRecord callback chain your DB updates will be rolled back unless the entire callback chain returns true.</p><p>Another way to look at this: I need to track all ActiveRecord &#039;create&#039; attempts but it seems that I&#039;m unable to use callbacks or observers to do this since both are referenced within the ActiveRecord callback chain.</p><p>How would you go about doing this?</p><p>I&#039;ve posted this question on the ruby forum as well at: <a href="http://www.ruby-forum.com/topic/4411097">http://www.ruby-forum.com/topic/4411097</a></p><p>Thanks for the help!</p>]]></description>
			<author><![CDATA[dummy@example.com (craayzie)]]></author>
			<pubDate>Wed, 20 Feb 2013 01:23:44 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=160129#p160129</guid>
		</item>
	</channel>
</rss>
