Module: Concerns::Backend::TranslatableController

Instance Method Summary collapse

Instance Method Details

#update_translationObject



11
12
13
14
15
16
17
# File 'app/controllers/concerns/backend/translatable_controller.rb', line 11

def update_translation
  if @translation.save(params[model_name])
    redirect_to translatable_path, notice: t('b.msg.changes_saved')
  else
    render :edit_translation
  end
end