You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and assuming a context of exporting a set of translated record_ids, what is the proper syntax for querying/accessing the table for such an array? struggled a bit with this for basic mobility
I believ it evolves from:
Mobility::Activerecord::StringTranslation
Mobility::Activerecord::TextTranslation
to
Mobility::Backends::ActionText::PlainTextTranslation
Mobility::Backends::ActionText::RichTextTranslation
?
Assuming klass.translatable_content column, how does one call a method, say
Hi @dvodvo, thanks for writing in. Once you've set up Mobility and Action Text, your translated Action Text should be accessible using the standard Mobility APIs, e.g. record.content. A DB index is suggested to ensure fast access to the records and (optionally) to enforce uniqueness, but it doesn't impact the way to read/write attributes using the Mobility API.
If you have further questions, please feel free to reopen with code which allows to reproduce your issue.
giving the indices
and assuming a context of exporting a set of translated record_ids, what is the proper syntax for querying/accessing the table for such an array? struggled a bit with this for basic mobility
I believ it evolves from:
Mobility::Activerecord::StringTranslation
Mobility::Activerecord::TextTranslation
to
Mobility::Backends::ActionText::PlainTextTranslation
Mobility::Backends::ActionText::RichTextTranslation
?
Assuming klass.translatable_content column, how does one call a method, say
?
The text was updated successfully, but these errors were encountered: