Forgot to commit the user reg controler
This commit is contained in:
12
app/controllers/registrations_controller.rb
Normal file
12
app/controllers/registrations_controller.rb
Normal 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
|
||||
Reference in New Issue
Block a user