Skip to content

Use Field::RichText type for ActionText has_rich_text associations#2926

Merged
nickcharlton merged 1 commit intothoughtbot:mainfrom
smartygus:generator-recognises-richtext-fiels
Nov 27, 2025
Merged

Use Field::RichText type for ActionText has_rich_text associations#2926
nickcharlton merged 1 commit intothoughtbot:mainfrom
smartygus:generator-recognises-richtext-fiels

Conversation

@smartygus
Copy link
Copy Markdown
Contributor

@nickcharlton nickcharlton force-pushed the generator-recognises-richtext-fiels branch from 7f146ad to a41839d Compare November 27, 2025 13:03
Detects ActionText rich text associations based on the class name and
attribute when using the generators and set the type to `Field::RichText`.

Fixes thoughtbot#2925
@nickcharlton nickcharlton force-pushed the generator-recognises-richtext-fiels branch from a41839d to 62e1260 Compare November 27, 2025 13:06
@nickcharlton
Copy link
Copy Markdown
Member

Thank you!

(I tested it locally, and it'll take a rich_text_contentlike what's in the Rails guides — and set to use the right field.)

@nickcharlton nickcharlton merged commit a517c32 into thoughtbot:main Nov 27, 2025
25 checks passed
@smartygus
Copy link
Copy Markdown
Contributor Author

smartygus commented Nov 27, 2025

Thank you!

(I tested it locally, and it'll take a rich_text_contentlike what's in the Rails guides — and set to use the right field.)

Cool, yeah that was my intention 👍
It was basically a hiccup in my first-run experience with administrate, cos my app was using Action Text a fair bit, and it seemed like a relatively small fix, so I figured I may as well contribute!

Thanks for the review, the tweaks, and the merge 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard Generator doesn't recognise ActionText Rich Text fields

2 participants