ruby-grape / grape

An opinionated framework for creating REST-like APIs in Ruby.

Home Page:http://www.ruby-grape.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with CustomValidator if it's name doesn't end with "_validator"

ericproulx opened this issue · comments

I found a issue while registering a custom validator in our app. The delete_suffix!! will return nil if no change was made. We need to remove the !.

I'll open a PR to fix it