Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Patricio Sanchez
/
quiniela-mundial
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Iker Narvaez
2018-06-11 18:22:43 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1aaeb850d0a50016447eafaadc998a0e92c78ac9
1aaeb850
1 parent
96978bc0
load recent results only they have if points calculated
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/controllers/application_controller.rb
app/controllers/application_controller.rb
View file @
1aaeb85
...
...
@@ -33,7 +33,7 @@ class ApplicationController < HeimdallEngine::ApplicationController
def
check_results
return
[]
unless
current_user
current_user
.
bets
.
joins
(
:match
).
order
(
'matches.date desc'
)
.
where
.
not
(
result
:
nil
)
.
where
.
not
(
points
:
nil
)
.
limit
(
5
)
end
end
...
...
Please
register
or
login
to post a comment