Sha256: f55a0599e81bca5d427a3a42ec7c1459a86ff615b7e0caceec7c4f8d662c642c
Contents?: true
Size: 472 Bytes
Versions: 4
Compression:
Stored size: 472 Bytes
Contents
class PlansController < ApplicationController layout Saucy::Layouts.to_proc def index @plans = Plan.all end def edit @plans = Plan.all @account = current_account end def update @plans = Plan.all @account = current_account if @account.save_braintree!(params[:account]) redirect_to edit_account_path(@account), :notice => t('.update.notice', :default => "Plan changed successfully") else render :edit end end end
Version data entries
4 entries across 4 versions & 1 rubygems