Class: Wayfarer::Middleware::ContentType
- Inherits:
-
Object
- Object
- Wayfarer::Middleware::ContentType
- Extended by:
- Base
- Defined in:
- lib/wayfarer/middleware/content_type.rb
Defined Under Namespace
Modules: API
Constant Summary
Constants included from Base
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#call(task) ⇒ Object
30 31 32 |
# File 'lib/wayfarer/middleware/content_type.rb', line 30 def call(task) yield if block_given? && permitted?(task) end |