Module: PinFlags::FeatureTags::FeatureSubscriptionsHelper

Defined in:
app/helpers/pin_flags/feature_tags/feature_subscriptions_helper.rb

Instance Method Summary collapse

Instance Method Details

#display_feature_subscription_delete_button_aria_label(feature_subscription) ⇒ Object



15
16
17
18
19
20
# File 'app/helpers/pin_flags/feature_tags/feature_subscriptions_helper.rb', line 15

def display_feature_subscription_delete_button_aria_label(feature_subscription)
  feature_taggable_type = strip_tags(feature_subscription.feature_taggable_type)
  feature_taggable_id = feature_subscription.feature_taggable_id

  "Delete Feature Subscription for #{feature_taggable_type} with ID #{feature_taggable_id}"
end

#display_feature_subscription_row_delete_confirmation(feature_subscription) ⇒ Object



8
9
10
11
12
13
# File 'app/helpers/pin_flags/feature_tags/feature_subscriptions_helper.rb', line 8

def display_feature_subscription_row_delete_confirmation(feature_subscription)
  taggable_type = strip_tags(feature_subscription.feature_taggable_type)
  taggable_id = feature_subscription.feature_taggable_id

  "Are you sure you want to delete the feature subscription for '#{taggable_type}' with ID '#{taggable_id}'?"
end

#display_feature_subscription_table_turbo_frame_row_id(feature_subscription) ⇒ Object



4
5
6
# File 'app/helpers/pin_flags/feature_tags/feature_subscriptions_helper.rb', line 4

def display_feature_subscription_table_turbo_frame_row_id(feature_subscription)
  "feature_subscriptions_table_row_#{dom_id(feature_subscription)}"
end