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
controller -> globalize_accessors
Strong parameters aren't working either.
Example with strong parameters:
params.require(:product).permit(*Product.globalize_attribute_names)
If you need to permit non-translatable attributes as well, you could include them with:
Looks like this gem wont be supported anymore. So, if anybody tries to use this on rails 6, here it goes:
My gem set:
model -> globalize_accessors
Apparently, the defaults ain't working, you should define yourself!
controller -> globalize_accessors
Strong parameters aren't working either.
You can "workaround" with:
In my case, I'm building a simple FAQ API for our application, so this won't be an issue.
The text was updated successfully, but these errors were encountered: