<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Kellogg Associates: Observers in Rails 1.2</title>
    <link>http://kellogg-assoc.com/articles/2007/01/26/observers-in-1-2</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Observers in Rails 1.2</title>
      <description>Thanks to &lt;a href="http://weblog.techno-weenie.net"&gt;Rick Olson&lt;/a&gt; for providing assistance with the proper syntax for instantiating observers in Rails 1.2. The old way was to add an &lt;em&gt;observer&lt;/em&gt; statement to the appropriate controler, such as:
&lt;pre&gt;&lt;code&gt;observer :user_observer&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Hidden in the ignored parts of conf/environment.rb was the proper notation:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;# Activate observers that should always be running
# config.active_record.observers = :cacher, :garbage_collector&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;This makes the last of my deprecation messages go away!&lt;/p&gt;


	&lt;p&gt;Gregg&lt;/p&gt;</description>
      <pubDate>Fri, 26 Jan 2007 21:13:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:0cfa68fe-1614-43c1-886d-3ce5011ed62d</guid>
      <author>gregg@kellogg-assoc.com (Gregg Kellogg)</author>
      <link>http://kellogg-assoc.com/articles/2007/01/26/observers-in-1-2</link>
      <category>Ruby on Rails</category>
      <trackback:ping>http://kellogg-assoc.com/articles/trackback/20</trackback:ping>
    </item>
  </channel>
</rss>
