Class: Sinatra::ParamValidator::Validator::UrlParam

Inherits:
Sinatra::ParamValidator::Validator show all
Defined in:
lib/sinatra/param_validator/validator/url_param.rb

Overview

A URL parameter; handle validation failure with

Instance Attribute Summary

Attributes inherited from Sinatra::ParamValidator::Validator

#errors

Instance Method Summary collapse

Methods inherited from Sinatra::ParamValidator::Validator

inherited, #initialize, #run, #success?

Constructor Details

This class inherits a constructor from Sinatra::ParamValidator::Validator

Instance Method Details

#handle_failure(context) ⇒ Object



8
9
10
# File 'lib/sinatra/param_validator/validator/url_param.rb', line 8

def handle_failure(context)
  context.halt 403
end