On Fri, Dec 23, 2011 at 01:16:12AM -0800, Jeremy Evans wrote: > On Dec 22, 8:32?pm, Jason Dixon <[email protected]> wrote: > > I'm attempting to define a custom composition for a boolean column but > > it's causing an exception. > > > > class Site < Sequel::Model > > ? many_to_one :users > > ? plugin :composition > > ? composition :enabled?, :mapping=>[:enabled] > > ? ... > > end > > > > Am I using this plugin incorrectly? > > You should provide a :class option when using :mapping (the RDoc for > the composition plugin needs some work). But my guess is you really > want to use boolean_readers plugin instead of the composition plugin.
boolean_readers is exactly what I needed. :) Thanks! -- Jason Dixon DixonGroup Consulting http://www.dixongroup.net/ -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
