Sha256: fc103be6cc70072486219273a05901b9b02741869fd7e2a851e0988ae66b2ae2
Contents?: true
Size: 500 Bytes
Versions: 22
Compression:
Stored size: 500 Bytes
Contents
class PlansController < ApplicationController layout Saucy::Layouts.to_proc def index @plans = Plan.ordered end def edit @plans = Plan.ordered @account = current_account end def update @plans = Plan.ordered @account = current_account if @account.save_customer_and_subscription!(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
22 entries across 22 versions & 1 rubygems