13 lines
210 B
Ruby
13 lines
210 B
Ruby
class RegistrationsController < Devise::RegistrationsController
|
|
|
|
before_filter :check_for_cancel
|
|
|
|
def check_for_cancel
|
|
if params[:commit] == 'cancel'
|
|
redirect_to forums_path
|
|
end
|
|
end
|
|
|
|
|
|
end
|