Sha256: 15a602838afa969f250c474c3a8973ae028fc51b2e8a5c78117fde55f2ebecfd

Contents?: true

Size: 222 Bytes

Versions: 8

Compression:

Stored size: 222 Bytes

Contents

class FileViewStat < Sufia::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

8 entries across 8 versions & 1 rubygems

Version Path
sufia-7.4.1 app/models/file_view_stat.rb
sufia-7.4.0 app/models/file_view_stat.rb
sufia-7.3.1 app/models/file_view_stat.rb
sufia-7.3.0 app/models/file_view_stat.rb
sufia-7.3.0.rc3 app/models/file_view_stat.rb
sufia-7.3.0.rc2 app/models/file_view_stat.rb
sufia-7.3.0.rc1 app/models/file_view_stat.rb
sufia-7.2.0 app/models/file_view_stat.rb