Module: Kenji

Defined in:
lib/validate/kenji.rb

Overview

This extention provides an easier way to utilize Validate’s functionality from the Kenji web framework.

For example, one might do:

# a kenji route
post '/login' do
  input = kenji.validated_input do
    validates_type_of 'email', is: String
    validates_type_of 'password', is: String
  end
  # from here on out I can assume input is valid...
end

Defined Under Namespace

Classes: Kenji