Forgot to commit the user reg controler
This commit is contained in:
1 parent
f6d82fc596
commit
db3e90cc2d
1 file changed
+12
@@ -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
|
||||||
Reference in new issue
Block a user