lib/generators/jt/user/templates/controllers/concerns/current_user.rb in jt-rails-generator-user-1.0.6 vs lib/generators/jt/user/templates/controllers/concerns/current_user.rb in jt-rails-generator-user-1.0.7
- old
+ new
@@ -16,15 +16,19 @@
end
def require_user
if !current_user
redirect_to login_url
+ return false
end
+ true
end
def require_no_user
if current_user
redirect_to root_url
+ return false
end
- end
+ true
+ end
end
\ No newline at end of file