On Mar 8, 11:53 pm, David Lee <[email protected]> wrote: > > You can't do either in 2.11, unless you apply the plugin/define the > > method in all of the subclasses. > > can you do: > > class MyModel < Sequel::Model > def set_only(*args) > old = strict_param_setting > self.strict_param_setting = false > begin > super > ensure > self.strict_param_setting = old > end > end > end > > and derive all your classes off of MyModel? Or will that still break?
That should work in 2.11. 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 -~----------~----~----~----~------~----~------~--~---
