Class: Feste::SubscriptionsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Feste::SubscriptionsController
show all
- Includes:
- Authenticatable
- Defined in:
- app/controllers/feste/subscriptions_controller.rb
Instance Method Summary
collapse
#find_or_create_subscriptions, #get_user_data, #subscriber
Instance Method Details
#index ⇒ Object
9
10
11
|
# File 'app/controllers/feste/subscriptions_controller.rb', line 9
def index
@subscriber = subscriber
end
|
#update ⇒ Object
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'app/controllers/feste/subscriptions_controller.rb', line 13
def update
events = set_callback_events
if update_subscriptions
publish_callback_events(events)
flash[:success] = "You have successfully updated your subscriptions!"
else
flash[:notice] = "Something went wrong! Please try again later."
end
redirect_back(
fallback_location: subscriptions_path(token: params[:token])
)
end
|