Thanks Jeremy!

On Tuesday, August 20, 2019 at 6:38:55 PM UTC+2, Jeremy Evans wrote:
>
> On Tuesday, August 20, 2019 at 5:51:44 AM UTC-7, Nick Nope wrote:
>>
>> I like to add validators the same way as they are in ValidationHelpers. 
>> Since those already sport options like :allow_missing, :allow_nil etc. it 
>> would be nice to build upon that functionality. However the method 
>> validatable_attributes_for_type is private and I can't see a simple way to 
>> extend this. Might be due to me not knowing ruby well enough. 
>>
>> Any suggestions?
>>
>
> The method is private because it doesn't make sense for other objects to 
> call the method on the object, it only makes sense for the object to call 
> the method on itself.  You can certainly call the method directly in your 
> code. The API hasn't changed in 10 years and I don't expect it to change in 
> the future.
>
> Thanks,
> Jeremy
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/23557efe-cf51-4d66-9f88-e30f091b9f67%40googlegroups.com.

Reply via email to