metamaps--metamaps/app/controllers/registrations_controller.rb

13 lines
233 B
Ruby
Raw Normal View History

2014-03-03 18:28:16 +00:00
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