Forgot to commit the user reg controler

This commit is contained in:
2013-01-24 13:11:51 -05:00
parent f6d82fc596
commit db3e90cc2d

View File

@@ -0,0 +1,12 @@
class RegistrationsController < Devise::RegistrationsController
before_filter :check_for_cancel
def check_for_cancel
if params[:commit] == 'cancel'
redirect_to forums_path
end
end
end