On Nov 29, 6:22 am, Lorenzo <alie...@gmail.com> wrote:
> Hi, I'd like to filter the input of a setter, I saw model hooks but in this case it won't fit well since the column will not be touched in most cases.With Sequel, it's even simpler, you just call super:
> something like:
> def foo=(param)
> wont work because ruby will call self until the nice error Stack level too deep. With DataMapper I could use set_attribute() method, is there an alternative for sequel, or i'll have to use a simple before_ hook?
In almost all cases in Sequel::Model, whenever you override a method,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.