Commit 85e4e3851839e049cfed74411b675fa932fb2ac7
Committed by
Paulo Meireles
1 parent
d04295bc
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