On Wednesday, November 7, 2018 at 7:19:56 AM UTC-8, Alexander Popov wrote:
>
> So… only global monkey patching? Sequel has no possibility like
> `Sequel::Inflections.underscore_method = SomeLib.method(:underscore)` (for
> example)? OK, thanks…
>
Well, you could always override the methods in Sequel::Inflections if you
don't want to make a global change:
class Sequel::Inflections
private
def underscore(string)
# whatever you want
end
end
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 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.