Class: Avocado::Middleware::DocumentIfConfiguration
- Inherits:
-
Object
- Object
- Avocado::Middleware::DocumentIfConfiguration
- Defined in:
- lib/avocado/middleware/document_if_configuration.rb
Instance Method Summary collapse
-
#call {|continue| ... } ⇒ Object
return false if document_if returns false, so it will stop the middleware chain and not upload anything.
Instance Method Details
#call {|continue| ... } ⇒ Object
return false if document_if returns false, so it will stop the middleware chain and not upload anything
6 7 8 9 |
# File 'lib/avocado/middleware/document_if_configuration.rb', line 6 def call(*) continue = Avocado::Config.document_if.call yield continue end |