<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,7 @@
 
 == ruote - 0.9.21    not yet released
 
+- bug   #25953 : conflict with Rails #observers method. Fixed.
 - todo  #25799 : implemented engine.reapply(exp)
 - bug   #25832 : scheduled launch broken. Fixed.
 - todo  #25851 : added fdate to ProcessError (date in float)</diff>
      <filename>CHANGELOG.txt</filename>
    </modified>
    <modified>
      <diff>@@ -65,55 +65,55 @@ module OpenWFE
 
     protected
 
-      #
-      # Observable classes do call this method to notify their
-      # observers.
-      #
-      # Returns true if there was an observer registered.
-      #
-      def onotify (channel, *args)
-
-        do_notify(:all, channel, *args)
-        do_notify(channel, channel, *args)
-      end
+    #
+    # Observable classes do call this method to notify their
+    # observers.
+    #
+    # Returns true if there was an observer registered.
+    #
+    def onotify (channel, *args)
+
+      do_notify(:all, channel, *args)
+      do_notify(channel, channel, *args)
+    end
 
     private
 
-      def do_remove_observer (observer, channel)
+    def do_remove_observer (observer, channel)
 
-        observers = @observers[channel]
-        observers.delete(observer) if observers
-      end
-
-      def do_notify (target_channel, channel, *args)
+      observers = @observers[channel]
+      observers.delete(observer) if observers
+    end
 
-        #ldebug { &quot;do_notify() @observers.size is #{@observers.size}&quot; }
+    def do_notify (target_channel, channel, *args)
 
-        observers = if target_channel.is_a?(String)
+      #ldebug { &quot;do_notify() @observers.size is #{@observers.size}&quot; }
 
-          @observers.inject([]) do |r, (c, o)|
+      observers = if target_channel.is_a?(String)
 
-            if c.is_a?(String)
-              r += o if target_channel.match(c)
-            elsif c.is_a?(Regexp)
-              r += o if c.match(target_channel)
-            end
+        @observers.inject([]) do |r, (c, o)|
 
-            r
+          if c.is_a?(String)
+            r += o if target_channel.match(c)
+          elsif c.is_a?(Regexp)
+            r += o if c.match(target_channel)
           end
-        else
 
-          @observers[target_channel]
+          r
         end
+      else
+
+        @observers[target_channel]
+      end
 
-        return false unless observers
+      return false unless observers
 
-        observers.each { |obs| obs.call(channel, *args) }
+      observers.each { |obs| obs.call(channel, *args) }
 
-        (observers.size &gt; 0)
-          #
-          # returns true if at least one observer was called
-      end
+      (observers.size &gt; 0)
+        #
+        # returns true if at least one observer was called
+    end
   end
 end
 </diff>
      <filename>lib/openwfe/util/observable.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7bbdcd307a96692b71c814d10b179e035112f4fb</id>
    </parent>
  </parents>
  <author>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </author>
  <url>http://github.com/jmettraux/ruote/commit/6e9e64f3d54520ada6a4f49d003fe426e6511cf8</url>
  <id>6e9e64f3d54520ada6a4f49d003fe426e6511cf8</id>
  <committed-date>2009-05-18T20:28:40-07:00</committed-date>
  <authored-date>2009-05-18T20:28:40-07:00</authored-date>
  <message>bug #25953 : conflict with Rails #observers method. Fixed.</message>
  <tree>0cc5c0987a19be97651e6de2ba0a3e77de860f2d</tree>
  <committer>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </committer>
</commit>
