Cross Reference: history_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
history_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
history_controller.rb revision a66eb4e1f6b16b8225526ae69a09eb551a078895
class
HistoryController
<
InheritedResources
::
Base
defaults
resource_class
:
HistoryEntriesPage
defaults
singleton
:
true
actions
:
show
before_filter
:
check_read_permissions
protected
def
resource
@
history_entries
||=
HistoryEntriesPage.find
(
params
)
end
def
check_read_permissions
authorize
! :
show
,
Repository.find
_by_path
!
(
params
[:
repository_id
])
end
end