Skip to content

Commit ee3effd

Browse files
committed
Fixed patchwork bugs
1 parent f71fd26 commit ee3effd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

app/controllers/application_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class ApplicationController < ActionController::Base
1313
# filter_parameter_logging :password
1414
private
1515

16-
def requires_login
16+
def require_user
1717
flash[:error] = "Access Denied: User not logged in"
1818
redirect_to root_url unless current_user
1919
end
2020

21-
def requires_no_login
21+
def require_no_user
2222
flash[:error] = "User already logged in"
2323
redirect_to root_url if current_user
2424
end

app/models/notifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Notifier < ActiveRecord::Base
1+
class Notifier < ActionMailer::Base
22
default_url_options[:host] = "authlogic_example.binarylogic.com"
33

44
def password_reset_instructions(user)

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<%- end -%>
2020

2121
<div class="login_details">
22-
<% if logged_in? %>
22+
<% if current_user %>
2323
Welcome <%= current_user.username %>! Not you?
2424
<%= link_to "Log out", logout_path %>
2525
<% else %>

app/views/user_sessions/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
<%= f.submit "Login" %>
1414
<% end %>
1515

16-
<%= link_to "Forgot your password?", password_reset_path %>
16+
<%= link_to "Forgot your password?", new_password_reset_path %>

cake.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)