Class: PinFlags::FeatureTags::FeatureSubscriptionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PinFlags::FeatureTags::FeatureSubscriptionsController
- Defined in:
- app/controllers/pin_flags/feature_tags/feature_subscriptions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
16 17 18 19 20 21 22 |
# File 'app/controllers/pin_flags/feature_tags/feature_subscriptions_controller.rb', line 16 def create if feature_subscription_params[:bulk_upload] == "1" create_feature_subscriptions_in_bulk else create_single_feature_subscription end end |
#destroy ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'app/controllers/pin_flags/feature_tags/feature_subscriptions_controller.rb', line 24 def destroy @feature_subscription.destroy respond_to do |format| format.html { redirect_to @feature_tag, notice: "Feature Subscription was successfully destroyed." } format.turbo_stream end end |
#new ⇒ Object
12 13 14 |
# File 'app/controllers/pin_flags/feature_tags/feature_subscriptions_controller.rb', line 12 def new @feature_subscription = @feature_tag.feature_subscriptions.new end |