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