Skip to content

Commit 270d32e

Browse files
committed
Serendipitous: ask questions about any of the user's content, not just core content
1 parent c5eb688 commit 270d32e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/controllers/main_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ def comingsoon
1616
def dashboard
1717
return redirect_to new_user_session_path unless user_signed_in?
1818

19-
content_type = %w(characters locations items).sample
20-
@content = current_user.send(content_type).sample
19+
@content = current_user.content.values.flatten.sample
2120
@question = @content.question unless @content.nil?
2221
end
2322
end

0 commit comments

Comments
 (0)