<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to get non-model data in ActiveRecord Callbacks</title>
	<atom:link href="http://www.christopherirish.com/2010/08/16/how-to-get-non-model-data-in-activerecord-callbacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christopherirish.com/2010/08/16/how-to-get-non-model-data-in-activerecord-callbacks/</link>
	<description>Ruby, Rails, Javascript, all things web development related</description>
	<lastBuildDate>Thu, 28 Jul 2022 18:51:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Irish</title>
		<link>http://www.christopherirish.com/2010/08/16/how-to-get-non-model-data-in-activerecord-callbacks/comment-page-1/#comment-189</link>
		<dc:creator>Irish</dc:creator>
		<pubDate>Fri, 28 Oct 2011 07:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.christopherirish.com/?p=427#comment-189</guid>
		<description>Sentient_user looks cool, thanks for the link :)</description>
		<content:encoded><![CDATA[<p>Sentient_user looks cool, thanks for the link <img src='http://www.christopherirish.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gam</title>
		<link>http://www.christopherirish.com/2010/08/16/how-to-get-non-model-data-in-activerecord-callbacks/comment-page-1/#comment-188</link>
		<dc:creator>Gam</dc:creator>
		<pubDate>Thu, 27 Oct 2011 10:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.christopherirish.com/?p=427#comment-188</guid>
		<description>It feels more sane for me to use in the model class:
  attr_accessor :current_user
And assign it before saving, the callback can access it. You must however assign it in your controller.
For a similar global solution:
https://github.com/bokmann/sentient_user</description>
		<content:encoded><![CDATA[<p>It feels more sane for me to use in the model class:<br />
  attr_accessor :current_user<br />
And assign it before saving, the callback can access it. You must however assign it in your controller.<br />
For a similar global solution:<br />
<a href="https://github.com/bokmann/sentient_user" rel="nofollow">https://github.com/bokmann/sentient_user</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
