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
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 *valid
.
It was suggested that I include this plugin after *helpers* and before
*models*.
Thank you.
On Sunday, October 29, 2023 at 6:50:26 AM UTC-4 Marcelo wrote:
> I don't see the *validation_helpers* plugin adding a *before_validation*
> class method:
>
> https://sequel.j
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 insid
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 Car
On Oct 20, 10:35 am, Jeremy Evans wrote:
> I've got a working implementation for a plugin that allows an
> alternative syntax for the validation_helpers plugin's methods (http://
> pastie.org/662251.txt):
There's no apparent interest in this, so it's not going int
I've got a working implementation for a plugin that allows an
alternative syntax for the validation_helpers plugin's methods (http://
pastie.org/662251.txt):
def validate
validates do
name do
presence
max_length 10
end
date do
format %r{\d\d/\d\d/\d\d\d\