Sha256: fcab2558ab8c2420fcf20013c9e992e8724de4fb7e16ef6364c012e4c73c7552
Contents?: true
Size: 641 Bytes
Versions: 32
Compression:
Stored size: 641 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 Saucy::Configuration.notify("plan_upgraded", :account => @account, :request => request) 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
32 entries across 32 versions & 2 rubygems