Replies: 1 comment 3 replies
-
Model::Errors values are currently expected to be strings, so Sequel cannot currently support |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a model Card that has many_to_many association with the Order model. In the Card model, i have a method similar to the one in the plugin examples page something like this:
suppose i have a Card instance card, when using card.check_orders! and then valid? i get something like this as an errors
i was wondering if there a way to get a result similar to this:
i've checked here
sequel/lib/sequel/plugins/validate_associated.rb
Lines 75 to 77 in e296f6e
and i believe that this will work for me, but will change how the plugin works currently
as always, i'm sure there is a proper way to do that in Sequel :) maybe i missed some plugin or option. I'll be glad if someone helps me out.
Beta Was this translation helpful? Give feedback.
All reactions