From 3cd60d962a2bf46ed4729674d9015c0a4a66e6ae Mon Sep 17 00:00:00 2001 From: João M. M. da Silva + Alessandro Palmeira + Diego Araújo Date: Wed, 22 Aug 2012 15:05:17 -0300 Subject: [PATCH] [Mezuro] Fixed exceptions handling in controller --- plugins/mezuro/controllers/mezuro_plugin_myprofile_controller.rb | 2 +- plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mezuro/controllers/mezuro_plugin_myprofile_controller.rb b/plugins/mezuro/controllers/mezuro_plugin_myprofile_controller.rb index ac3042c..de96d2c 100644 --- a/plugins/mezuro/controllers/mezuro_plugin_myprofile_controller.rb +++ b/plugins/mezuro/controllers/mezuro_plugin_myprofile_controller.rb @@ -148,7 +148,7 @@ class MezuroPluginMyprofileController < ProfileController end def look_for_configuration_content_errors - redirect_to_error_page(@configuration_content.errors[:base]) if not @configuration_content.errors.nil? + redirect_to_error_page(@configuration_content.errors[:base]) if not @configuration_content.errors[:base].nil? end def look_for_model_error(model) diff --git a/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb b/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb index f820554..49c1d98 100644 --- a/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb +++ b/plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb @@ -105,7 +105,7 @@ class MezuroPluginProfileController < ProfileController end def project_content_errors? - not @content.errors.nil? + not @content.errors[:base].nil? end end -- libgit2 0.21.2