Righto, thanks Jeremy. On Wednesday, 16 August 2023 at 00:48:08 UTC+10 Jeremy Evans wrote:
> 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/c4ae602e-8432-4893-8af3-6e6e872af2bfn%40googlegroups.com.
