fixes according to houndci guidelines

This commit is contained in:
Stella 2014-05-04 13:23:53 +03:00
parent e3d21de1cb
commit 5479871a30

View file

@ -18,10 +18,11 @@ class Admin::CallforpapersController < ApplicationController
@conference.short_title), @conference.short_title),
notice: 'Call for Papers was successfully updated.') notice: 'Call for Papers was successfully updated.')
else else
flash.now[:error] = 'Call for Papers update failed. ' + @cfp.errors.full_messages.map {|e| e.humanize + "."}.join(" ") flash.now[:error] = 'Call for Papers update failed. ' +
@cfp.errors.full_messages.map { |e| e.humanize + '.' }.join(' ')
@url = admin_conference_callforpaper_path(@conference.short_title, @cfp) @url = admin_conference_callforpaper_path(@conference.short_title, @cfp)
render action: "index" render action: 'index'
end end
end end
@ -33,7 +34,8 @@ class Admin::CallforpapersController < ApplicationController
@conference.short_title), @conference.short_title),
notice: 'Call for Papers was successfully created.') notice: 'Call for Papers was successfully created.')
else else
flash.now[:error] = 'Call for Papers creation failed. ' + @cfp.errors.full_messages.map {|e| e.humanize + "."}.join(" ") flash.now[:error] = 'Call for Papers creation failed. ' +
@cfp.errors.full_messages.map { |e| e.humanize + '.' }.join(' ')
@url = admin_conference_callforpapers_path(@conference.short_title) @url = admin_conference_callforpapers_path(@conference.short_title)
render action: "index" render action: "index"