Class: PinFlags::FeatureSubscription

Inherits:
ApplicationRecord show all
Defined in:
app/models/pin_flags/feature_subscription.rb

Defined Under Namespace

Classes: BulkProcessor

Class Method Summary collapse

Class Method Details

.create_in_bulk(feature_tag:, feature_taggable_type:, feature_taggable_ids:) ⇒ Object



13
14
15
16
17
18
19
# File 'app/models/pin_flags/feature_subscription.rb', line 13

def self.create_in_bulk(feature_tag:, feature_taggable_type:, feature_taggable_ids:)
  BulkProcessor.new(
    feature_tag: feature_tag,
    feature_taggable_type: feature_taggable_type,
    feature_taggable_ids: feature_taggable_ids
  ).process
end