houndci fixes

This commit is contained in:
Gopesh Tulsyan 2014-05-26 15:49:18 +05:30
parent 65d9bd10b5
commit 7cfa9ac5fb

View file

@ -26,7 +26,7 @@ class Admin::OrganizationsController < ApplicationController
def update def update
@organization = Organization.find(params[:id]) @organization = Organization.find(params[:id])
flash[:notice] = 'Organization was successfully updated' flash[:notice] = 'Organization was successfully updated'
if @organization.update_attributes(params[:organization]) if @organization.update_attributes(params[:organization])
respond_with @organization, location: admin_organizations_path respond_with @organization, location: admin_organizations_path
end end