houndci fixes

This commit is contained in:
Gopesh Tulsyan 2014-05-26 15:43:19 +05:30
parent c67700e0ae
commit a0aa523122
11 changed files with 39 additions and 36 deletions

View file

@ -13,7 +13,7 @@ class Admin::OrganizationsController < ApplicationController
def create
@organization = Organization.new(params[:organization])
flash[:notice] = 'Organization was successfully created.' if @organization.save
respond_with @organization, :location => admin_organizations_path
respond_with @organization, location: admin_organizations_path
end
def show
@ -27,7 +27,7 @@ class Admin::OrganizationsController < ApplicationController
def update
@organization = Organization.find(params[:id])
flash[:notice] = 'Organization was successfully updated' if @organization.update_attributes(params[:organization])
respond_with @organization, :location => admin_organizations_path
respond_with @organization, location: admin_organizations_path
end
def delete
@ -37,7 +37,7 @@ class Admin::OrganizationsController < ApplicationController
def destroy
@organization = Organization.find(params[:id])
@organization.destroy
redirect_to admin_organizations_path, :notice => "Organization got deleted"
redirect_to admin_organizations_path, notice: 'Organization got deleted'
end
end
end