Module: Sufia::Utils
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/sufia/models/utils.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#retry_unless(number_of_tries, condition, &block) ⇒ Object
retry the block if the conditional call is true unless we hit the maximum tries.
Instance Method Details
#retry_unless(number_of_tries, condition, &block) ⇒ Object
retry the block if the conditional call is true unless we hit the maximum tries
13 14 15 |
# File 'lib/sufia/models/utils.rb', line 13 def retry_unless(number_of_tries, condition, &block) self.class.retry_unless(number_of_tries, condition, &block) end |