Sha256: cdd8def312c2ee0b25549f966c43893935170e6564cbb5ce73285dba3b3a993c

Contents?: true

Size: 484 Bytes

Versions: 7

Compression:

Stored size: 484 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_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

7 entries across 7 versions & 1 rubygems

Version Path
saucy-0.2.17 app/controllers/plans_controller.rb
saucy-0.2.16 app/controllers/plans_controller.rb
saucy-0.2.15 app/controllers/plans_controller.rb
saucy-0.2.14 app/controllers/plans_controller.rb
saucy-0.2.13 app/controllers/plans_controller.rb
saucy-0.2.12 app/controllers/plans_controller.rb
saucy-0.2.11 app/controllers/plans_controller.rb