On Oct 21, 7:53 pm, Jeremy Evans <[email protected]> wrote: > On Oct 21, 5:36 pm, "sam.rawlins" <[email protected]> wrote: > > > On second thought, my creative solution might involve overriding > > Sequel::Dataset which is currently: > > > def input_identifier(v) > > (i = identifier_input_method) ? v.to_s.send(i) : v.to_s > > end > > > Grepping the source for 'identifier_input_method', this is the only > > place where I see the an object being sent identifier_input_method. > > Correct. For per-dataset overrides, that's the method you want to > override (and output_identifier).
I should point out that you can also use input_identifier_method= and output_identifier_method= per-Dataset. The only reason to override Dataset#input_identifier and Dataset#output_identifier is if you don't want to define a method on String. Jeremy -- 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.
