app/controllers/admin/roles_controller.rb in the_role-0.9.92 vs app/controllers/admin/roles_controller.rb in the_role-0.9.93

- old
+ new

@@ -27,11 +27,11 @@ end end def update role = TheRole.get(@role.the_role).the_reset! - role.the_merge!(params[:role][:the_role]) - + new_role = params[:role] ? params[:role][:the_role] : Hash.new + role.the_merge!(new_role) if @role.update_attribute(:the_role, role.to_yaml) flash[:notice] = t('the_role.role_updated') redirect_to edit_admin_role_path(@role) else render :action => :edit