On Tue, Aug 15, 2023 at 2:40 AM [email protected] <[email protected]> wrote:
> Hi Sequels, > > I'm sure I saw a plugin/method/configuration that allows joined columns > that don't belong to the model to be accessed via methods ( > query.all.first.foo), instead of via the hash (query.all.first[:foo]), > but now I can't find it, and am wondering if I just dreamed it! Does such a > thing exist? > You can define such methods yourself with def_column_accessor. By default, Sequel only creates methods for the model's columns. 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/CADGZSSdrnmFXKWpgm_Y9A6pONiwUZr0A_m7dK8RBnxVStmYmHA%40mail.gmail.com.
