Class: Wayfarer::Middleware::ContentType

Inherits:
Object
  • Object
show all
Extended by:
Base
Defined in:
lib/wayfarer/middleware/content_type.rb

Defined Under Namespace

Modules: API

Constant Summary

Constants included from Base

Base::API_MODULE

Instance Method Summary collapse

Methods included from Base

api, lazy

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