Commit 7e9e630f82e61afccf75f81f06217df4aa7127aa
Committed by
João M. M. da Silva
1 parent
9e4baa71
Exists in
staging
and in
42 other branches
[Mezuro] Fixed exceptions handling in controller
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
plugins/mezuro/controllers/mezuro_plugin_myprofile_controller.rb
| ... | ... | @@ -148,7 +148,7 @@ class MezuroPluginMyprofileController < ProfileController |
| 148 | 148 | end |
| 149 | 149 | |
| 150 | 150 | def look_for_configuration_content_errors |
| 151 | - redirect_to_error_page(@configuration_content.errors[:base]) if not @configuration_content.errors.nil? | |
| 151 | + redirect_to_error_page(@configuration_content.errors[:base]) if not @configuration_content.errors[:base].nil? | |
| 152 | 152 | end |
| 153 | 153 | |
| 154 | 154 | def look_for_model_error(model) | ... | ... |
plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb