On May 3, 4:48 pm, MaggotChild <[email protected]> wrote:
> Is there a setting and/or alternate method that would throw an
> exception if a record was not found?
>
> There are similar setting for validations and mass assignments
> (Sequel::Model.raise_on_save_failure and
> Sequel::Model.strict_param_setting) but there appears to be nothing
> for finding. Why?

No one has asked for it.  I don't have a personal need for it, but if
there is strong community demand, I'd consider a patch.  It's fairly
easy to add a method to Sequel::Model yourself that raises instead of
returning nil if a record is not found, FWIW.

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.

Reply via email to