Skip to content

Commit 2bc97f3

Browse files
nmacamillevilla
authored andcommitted
fix(home.html.erb): fix the undefined method exception for sorting viewers on the home page (ifmeorg#895)
1 parent 739fc35 commit 2bc97f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/pages/home.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div id="pages">
88
<div class="page">
99
<% @stories.each do |story| %>
10-
<% if current_user.id == story.userid || (is_viewer(story.viewers) && are_allies?(current_user.id, story.userid)) %>
10+
<% if current_user.id == story.userid || (viewer_of?(story.viewers) && are_allies?(current_user.id, story.userid)) %>
1111
<div class="story">
1212
<div class="align_left">
1313
<h1 class="story_name">

0 commit comments

Comments
 (0)