From ab53cc7b2eee86152f20aea6c968d74d1c747c4e Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Mon, 30 Jul 2012 23:32:48 -0500 Subject: update ActiveModel::ObserverArray documentation [ci skip] --- activemodel/lib/active_model/observer_array.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'activemodel/lib') diff --git a/activemodel/lib/active_model/observer_array.rb b/activemodel/lib/active_model/observer_array.rb index 2a522e6f18..77bc0f71e3 100644 --- a/activemodel/lib/active_model/observer_array.rb +++ b/activemodel/lib/active_model/observer_array.rb @@ -5,13 +5,14 @@ module ActiveModel # a particular model class. class ObserverArray < Array attr_reader :model_class - def initialize(model_class, *args) + def initialize(model_class, *args) #:nodoc: @model_class = model_class super(*args) end - # Returns true if the given observer is disabled for the model class. - def disabled_for?(observer) + # Returns +true+ if the given observer is disabled for the model class, + # +false+ otherwise. + def disabled_for?(observer) #:nodoc: disabled_observers.include?(observer.class) end -- cgit v1.2.3