app/presenters/hyrax/file_usage.rb in hyrax-3.0.0.pre.rc1 vs app/presenters/hyrax/file_usage.rb in hyrax-3.0.0.pre.rc2

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # Called by the stats controller, it finds cached file pageview data, # and prepares it for visualization in /app/views/stats/file.html.erb module Hyrax class FileUsage < StatsUsagePresenter def initialize(id) @@ -24,14 +25,14 @@ ] end private - def downloads - to_flots(FileDownloadStat.statistics(model, created, user_id)) - end + def downloads + to_flots(FileDownloadStat.statistics(model, created, user_id)) + end - def pageviews - to_flots(FileViewStat.statistics(model, created, user_id)) - end + def pageviews + to_flots(FileViewStat.statistics(model, created, user_id)) + end end end