Hi,
I have this column for my table/model which is a postgres array. Having
already loaded the pg_array extension, I'm forced to convert the passed
array before, so that I can have the validations properly working.
MyModel < Sequel::Model
def myarray=(rubyarray)
super Sequel.pg_array(rubyarray)
end
end
Is that a way to avoid overwriting the setter? Or is this considered the
best practice for this? I find it a bit verbose.
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.