Sha256: 31b0b2235444e66673ba39aa1a137167b430b385f1190a0dac4b6e7735de0adc

Contents?: true

Size: 206 Bytes

Versions: 6

Compression:

Stored size: 206 Bytes

Contents

module Cas
  class IncrementPageviewsJob
    include ::Sidekiq::Worker

    def perform(id, type)
      if type == "content"
        Cas::Content.find(id).increment!(:pageviews)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 app/jobs/cas/increment_pageviews_job.rb
cas-cms-1.0.0.alpha1 app/jobs/cas/increment_pageviews_job.rb
cas-cms-0.1.3 app/jobs/cas/increment_pageviews_job.rb
cas-cms-0.1.2 app/jobs/cas/increment_pageviews_job.rb
cas-cms-0.1.1 app/jobs/cas/increment_pageviews_job.rb
cas-cms-0.1.0 app/jobs/cas/increment_pageviews_job.rb