Sha256: 40711f4a87c7b41b8aa46a768bc35b276044a9fb6db55429926f80fbdedf6441

Contents?: true

Size: 222 Bytes

Versions: 58

Compression:

Stored size: 222 Bytes

Contents

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

58 entries across 58 versions & 2 rubygems

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