Sha256: 69fd3517dcd11ab31a44b464de0daea8b299abe3edcb545aa6c75bd27e9e365d

Contents?: true

Size: 163 Bytes

Versions: 58

Compression:

Stored size: 163 Bytes

Contents

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

58 entries across 58 versions & 2 rubygems

Version Path
hyrax-2.9.6 app/models/work_view_stat.rb
hyrax-2.9.5 app/models/work_view_stat.rb
hyrax-2.9.4 app/models/work_view_stat.rb
hyrax-2.9.3 app/models/work_view_stat.rb
hyrax-2.9.2 app/models/work_view_stat.rb
hyrax-2.9.1 app/models/work_view_stat.rb
hyrax-2.9.0 app/models/work_view_stat.rb
hyrax-2.8.0 app/models/work_view_stat.rb
hyrax-2.7.2 app/models/work_view_stat.rb
hyrax-2.7.1 app/models/work_view_stat.rb
hyrax-2.7.0 app/models/work_view_stat.rb
hyrax-2.6.0 app/models/work_view_stat.rb
hyrax-3.0.0.pre.rc1 app/models/work_view_stat.rb
hyrax-3.0.0.pre.beta3 app/models/work_view_stat.rb
hyrax-2.5.1 app/models/work_view_stat.rb
hyrax-2.5.0 app/models/work_view_stat.rb
hyrax-3.0.0.pre.beta2 app/models/work_view_stat.rb
hyrax-2.4.1 app/models/work_view_stat.rb
hyrax-3.0.0.pre.beta1 app/models/work_view_stat.rb
hyrax-2.4.0 app/models/work_view_stat.rb