Re: validation_helpers

2023-10-29 Thread Jeremy Evans
On Sun, Oct 29, 2023 at 3:40 AM bee...@gmail.com wrote: > For some reason I can't get the validation_helpers to load: > > > In the models loader: > *Sequel::Model.plugin :validation_helpers* > > Models are loaded after helpers. Inside the class that's been working: > *plugin

Re: validation_helpers

2023-10-29 Thread Michael Granger
On 29 Oct 2023, at 11:50, Marcelo wrote: I don't see the *validation_helpers* plugin adding a *before_validation* class method: https://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/ValidationHelpers.html You can see in the docs how this plugin only adds some *validates_**

Re: validation_helpers

2023-10-29 Thread bee...@gmail.com
OK, I've turned that into a method. And it works now. I thought it might have followed the *before_* situations that *Sinatra* follows. As well, is *Object.valid? *a alias for *Object.validate* as it's not apparent due to the *super*. The individual validates_ methods were fine. It was

Re: validation_helpers

2023-10-29 Thread Marcelo
I don't see the *validation_helpers* plugin adding a *before_validation* class method: https://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/ValidationHelpers.html You can see in the docs how this plugin only adds some *validates_** methods, which should be called inside the

validation_helpers

2023-10-29 Thread bee...@gmail.com
For some reason I can't get the validation_helpers to load: In the models loader: *Sequel::Model.plugin :validation_helpers* Models are loaded after helpers. Inside the class that's been working: *plugin :validation_helpers* Error: *undefined method `before_validation' for Carrier:Class* It