app/controllers/admin/disguise/themes_controller.rb in disguise-0.3.3 vs app/controllers/admin/disguise/themes_controller.rb in disguise-0.3.4

- old
+ new

@@ -19,10 +19,14 @@ end def update @theme.update_attributes!(params[:theme]) respond_to do |format| - flash[:notice] = t('disguise.theme_updated') + if @theme.name.blank? + flash[:notice] = t('disguise.theme_removed') + else + flash[:notice] = t('disguise.theme_updated') + end format.html { redirect_to edit_admin_theme_path } end end private \ No newline at end of file