-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
amoeba_dup
on rich_text field raises NoMethodError: undefined method 'macro' on nil:NilClass
#110
Comments
amoeba_dup
on rich_text field raises `NoMethodError: undefined method 'macro' on nil:NilClassamoeba_dup
on rich_text field raises NoMethodError: undefined method 'macro' on nil:NilClass
@goulvench Thank you for raising this. If you want to have a go at a PR that would be very much appreciated. Although I've become a maintainer I am a long way from being an expert (yet) but I am hoping to get this gem more actively maintained. I have added the label 'enhancement'. Do you think this is appropriate, or would you consider it a bug? It should at least fail silently, which would suggest it is a bug. |
Hi, I would qualify this as a bug since rich_text are I'll see if I can work something out but I also have tons of work at the moment so I may not find time before a while. I'll let you know. Apart from that, Amoeba works like a charm and I was able to implement a requirement in just the time it takes to read the docs, so thanks for this gem! |
Thanks for pointing this out @goulvench, it seems that this issue is also occurring when working with I had to do this as a work-around
will look into the codebase and see if this can be rectified |
Also, when copying a (source) record that has a rich text field, the new (copy) record has an ActionText::RichText, but it does not persist the ActionText::RichText association. |
Version 3.2 of Amoeba doesn't support cloning rich_text attributes using the
include_association
syntax.The error raised is the same as in issue #79:
The
customize
syntax allows working around that limitation though, here is what works for me:Under-the-hood, rich text associations are defined using
has_one :"rich_text_#{name}"
, it would be nice if Amoeba was able to clone action_text natively, let me know if a PR would be welcome.The text was updated successfully, but these errors were encountered: