metamaps--metamaps/app/controllers/registrations_controller.rb
2014-03-03 10:28:16 -08:00

12 lines
233 B
Ruby

class RegistrationsController < Devise::RegistrationsController
protected
def after_sign_in_path_for(resource)
session[:previous_url] || root_path
end
def after_sign_up_path_for(resource)
root_path
end
end