Class: PlansController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- PlansController
- Defined in:
- app/controllers/plans_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
8 9 10 11 |
# File 'app/controllers/plans_controller.rb', line 8 def edit @plans = Plan.all @account = current_account end |
#index ⇒ Object
4 5 6 |
# File 'app/controllers/plans_controller.rb', line 4 def index @plans = Plan.all end |
#update ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/plans_controller.rb', line 13 def update @plans = Plan.all @account = current_account @account.save_braintree!(params[:account]) redirect_to edit_account_path(@account), :notice => t('.update.notice', :default => "Plan changed successfully") end |