Sha256: 9580ce09442212cc98c3c48d551e143f96f58d0447a0d2a9da93bd0d5ab40b18

Contents?: true

Size: 193 Bytes

Versions: 25

Compression:

Stored size: 193 Bytes

Contents

# frozen_string_literal: true
class WorkViewStat < Hyrax::Statistic
  self.cache_column = :work_views
  self.event_type = :pageviews

  def self.filter(work)
    { work_id: work.id }
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/models/work_view_stat.rb
hyrax-5.0.0 app/models/work_view_stat.rb
hyrax-5.0.0.rc3 app/models/work_view_stat.rb
hyrax-5.0.0.rc2 app/models/work_view_stat.rb
hyrax-5.0.0.rc1 app/models/work_view_stat.rb
hyrax-3.6.0 app/models/work_view_stat.rb
hyrax-4.0.0 app/models/work_view_stat.rb
hyrax-4.0.0.rc3 app/models/work_view_stat.rb
hyrax-4.0.0.rc2 app/models/work_view_stat.rb
hyrax-4.0.0.rc1 app/models/work_view_stat.rb
hyrax-3.5.0 app/models/work_view_stat.rb
hyrax-4.0.0.beta2 app/models/work_view_stat.rb
hyrax-3.4.2 app/models/work_view_stat.rb
hyrax-4.0.0.beta1 app/models/work_view_stat.rb
hyrax-3.4.1 app/models/work_view_stat.rb
hyrax-3.4.0 app/models/work_view_stat.rb
hyrax-3.3.0 app/models/work_view_stat.rb
hyrax-3.2.0 app/models/work_view_stat.rb
hyrax-3.1.0 app/models/work_view_stat.rb
hyrax-3.0.2 app/models/work_view_stat.rb