Module: Taro::Rails::ResponseValidation
- Defined in:
- lib/taro/rails/response_validation.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#render(**kwargs) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/taro/rails/response_validation.rb', line 6 def render(*, **kwargs, &) result = super if (declaration = Taro::Rails.declaration_for(self)) Taro::Rails::ResponseValidator.call(self, declaration, kwargs[:json]) end result end |