Fixing http referer

This commit is contained in:
Raphael 2010-11-25 19:50:14 -05:00
parent 1fb58c53fb
commit 6e14018abb

View file

@ -23,7 +23,7 @@ class AspectsController < ApplicationController
flash[:notice] = I18n.t('aspects.create.success', :name => @aspect.name)
if current_user.getting_started
redirect_to :back
elsif request.env['HTTP_REFERER'].includes("aspects/manage")
elsif request.env['HTTP_REFERER'].include?("aspects/manage")
redirect_to :back
else
respond_with @aspect