Skip to content
This repository
Browse code

Removing method before redefining it. It was causing warnings. [#5072

…state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit 4a26a292a0708df595662444e8c738ee1520ec57 1 parent b09fd9c
Łukasz Strzałkowski authored July 08, 2010 josevalim committed July 08, 2010
1  activemodel/lib/active_model/observing.rb
@@ -157,6 +157,7 @@ class << self
157 157
       def observe(*models)
158 158
         models.flatten!
159 159
         models.collect! { |model| model.respond_to?(:to_sym) ? model.to_s.camelize.constantize : model }
  160
+        remove_method(:observed_classes)
160 161
         define_method(:observed_classes) { models }
161 162
       end
162 163
 

0 notes on commit 4a26a29

Please sign in to comment.
Something went wrong with that request. Please try again.