diff options
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/observing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/observing.rb b/activemodel/lib/active_model/observing.rb index ca206ee9aa..976dcf23d8 100644 --- a/activemodel/lib/active_model/observing.rb +++ b/activemodel/lib/active_model/observing.rb @@ -215,7 +215,7 @@ module ActiveModel # end # end def observed_classes - Array(observed_class) + [observed_class].compact.flatten end # The class observed by default is inferred from the observer's class name: |