Module: Sinatra::Validation

Defined in:
lib/sinatra/validation.rb,
lib/sinatra/validation/version.rb

Defined Under Namespace

Modules: Helpers Classes: InvalidParameterError, Result

Constant Summary collapse

VERSION =
'0.4.0'

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



63
64
65
66
67
68
# File 'lib/sinatra/validation.rb', line 63

def self.registered(app)
  app.helpers Validation::Helpers
  app.set :silent_validation, false
  app.set :raise_sinatra_validation_exception, false
  app.set :filter_unpermitted_params, false
end