Skip to content
Snippets Groups Projects
Commit fe557ca7 authored by pabois's avatar pabois
Browse files

fix translation creation

parent f11e7ba5
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ module Admin::Translatable
redirect_to_translation(translation)
end
def redirect_to_translation
def redirect_to_translation(translation)
if ['edit', 'update'].include?(action_name) || translation.newly_translated
# Safety net on update action if called on wrong language
# There's an attribute accessor named "newly_translated" that we set to true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment