Cross Reference: home_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
home_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
home_controller.rb revision 06649c0d80870ce5b08e8faf19fec7fe7caed4c5
#
# The home page that displays all latest news
#
class
HomeController
<
ApplicationController
def
show
@
comments
=
Comment.latest.limit
(
10
)
.
all
@
versions
=
OntologyVersion.latest.where
(
state
:
'done'
)
.
limit
(
10
)
.
all
@
repositories
=
Repository.accessible
_by
(
current_user
)
.latest.limit
(
10
)
.
all
end
end