Sha256: f96bceae1fe8494981ffe6ecb7cd118ba48bf5188a8a73726e4ec4fcce49c3ed

Contents?: true

Size: 252 Bytes

Versions: 25

Compression:

Stored size: 252 Bytes

Contents

# frozen_string_literal: true
class FileViewStat < Hyrax::Statistic
  self.cache_column = :views
  self.event_type = :pageviews

  class << self
    # this is called by the parent class
    def filter(file)
      { file_id: file.id }
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

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