diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-30 23:32:48 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-30 23:32:48 -0500 |
commit | ab53cc7b2eee86152f20aea6c968d74d1c747c4e (patch) | |
tree | 0364be018ab1743ba00b4f09671fce4a2ec4d02f /activemodel/lib | |
parent | 1d537fdc47065d58ea268b6eac9593e559596431 (diff) | |
download | rails-ab53cc7b2eee86152f20aea6c968d74d1c747c4e.tar.gz rails-ab53cc7b2eee86152f20aea6c968d74d1c747c4e.tar.bz2 rails-ab53cc7b2eee86152f20aea6c968d74d1c747c4e.zip |
update ActiveModel::ObserverArray documentation [ci skip]
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/observer_array.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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 |