On Tue, Sep 21, 2021 at 12:57 AM [email protected] <[email protected]> wrote:
> Hi, recently am toying with something which adds a bit of state to a > Dataset, I came across this post: > https://groups.google.com/g/sequel-talk/c/vSMu_ktUO4Y/m/Re_SBIryBwAJ, and > your reply about using the opts Hash. > > Is the reply still valid since I am unable to modify the opts Hash no > matter if .dup or .clone (as in your example) us called on the Dataset? > Datasets are always frozen in Sequel 5. The reply is still valid, you can use Dataset#clone to return a copy of the dataset with options modified. You cannot modify the options directly, as they are frozen. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/CADGZSSci7LrgnyUVzsvZkzVAE8H8rM%3DDBpcbV7mCi4tVYAGLFA%40mail.gmail.com.
