Sha256: b6f4cabcbdaec88c09a3d12e3d910b39038f2af022ebc5bd427ec97475d094a3

Contents?: true

Size: 431 Bytes

Versions: 10

Compression:

Stored size: 431 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
    @account.save_braintree!(params[:account])
    redirect_to edit_account_path(@account), :notice => t('.update.notice', :default => "Plan changed successfully")
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
saucy-0.2.7 app/controllers/plans_controller.rb
saucy-0.2.6.1 app/controllers/plans_controller.rb
saucy-0.2.6 app/controllers/plans_controller.rb
saucy-0.2.5 app/controllers/plans_controller.rb
saucy-0.2.4.1 app/controllers/plans_controller.rb
saucy-0.2.4 app/controllers/plans_controller.rb
saucy-0.2.3 app/controllers/plans_controller.rb
saucy-0.2.2 app/controllers/plans_controller.rb
saucy-0.2.1 app/controllers/plans_controller.rb
saucy-0.2.0 app/controllers/plans_controller.rb