Class: Susply::RenovationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Susply::RenovationsController
- Defined in:
- app/controllers/susply/renovations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/susply/renovations_controller.rb', line 7 def create subscription = Susply::RenewsSubscription.call(@owner) if subscription redirect_to after_renovation_success_path, notice: t('susply.messages.success_renovation') else redirect_to after_renovation_fail_path, alert: t('susply.messages.failed_renovation') end end |