plugin :auto_validations #1858
PetrKaleta
started this conversation in
General
Replies: 1 comment 2 replies
-
You can probably override the related method: As to why your approach doesn't work, I'm not sure. Maybe you are running it before creating the related subclasses? Hard to guess why without a self contained example. As to why some subclasses are anonymous, I'm guessing you are doing something like: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am following on discussion I've started here https://groups.google.com/g/sequel-talk/c/DH4WXCAWdIg/m/Y2Du3gPwAwAJ so how to disable
unique
auto validations on all models.So far I was using this code
But currently I've found, that on some models it doesn't work. And I have no idea why... Is there something wrong on this approach? Also there's one strange behavior on
subclasses
plugin, when using block, some sub_classes are anonymous... Where are they coming from?Beta Was this translation helpful? Give feedback.
All reactions