Sha256: d8e5e35ba65024999f356301ec5c8f0295ab18c97d41315edb299471a40ca75b
Contents?: true
Size: 386 Bytes
Versions: 64
Compression:
Stored size: 386 Bytes
Contents
# frozen_string_literal: true module Decidim class MetricJob < ApplicationJob queue_as :metrics def perform(manager_class, organization_id, day = nil) organization = Decidim::Organization.find_by(id: organization_id) return unless organization metric = manager_class.constantize.new(day, organization) metric.save if metric.valid? end end end
Version data entries
64 entries across 64 versions & 1 rubygems