Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@strzalek strzalek authored josevalim committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  activemodel/lib/active_model/observing.rb
View
1  activemodel/lib/active_model/observing.rb
@@ -157,6 +157,7 @@ class << self
def observe(*models)
models.flatten!
models.collect! { |model| model.respond_to?(:to_sym) ? model.to_s.camelize.constantize : model }
+ remove_method(:observed_classes)
define_method(:observed_classes) { models }
end

0 comments on commit 4a26a29

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