Class: Hyrax::StatsController

Inherits:
ApplicationController
  • Object
show all
Includes:
Breadcrumbs, SingularSubresourceController
Defined in:
app/controllers/hyrax/stats_controller.rb

Instance Method Summary collapse

Methods included from Breadcrumbs

#build_breadcrumbs, #default_trail, #trail_from_referer

Methods included from SingularSubresourceController

#find_work

Methods included from DenyAccessOverrideBehavior

#deny_access

Instance Method Details

#fileObject



12
13
14
# File 'app/controllers/hyrax/stats_controller.rb', line 12

def file
  @stats = Hyrax::FileUsage.new(params[:id])
end

#workObject



8
9
10
# File 'app/controllers/hyrax/stats_controller.rb', line 8

def work
  @stats = Hyrax::WorkUsage.new(params[:id])
end