Sha256: 68eeb0058d3394584223edbffa12cef4277bc2f417ee9414188adbacfcd3156c

Contents?: true

Size: 755 Bytes

Versions: 62

Compression:

Stored size: 755 Bytes

Contents

class BillingsController < ApplicationController
  before_filter :authorize_admin, :except => [:show]
  layout Saucy::Layouts.to_proc

  def show
  end

  def edit
    @account = current_account

    @account.cardholder_name = @account.credit_card.cardholder_name
    @account.billing_email = @account.customer.email
    @account.expiration_month = @account.credit_card.expiration_month
    @account.expiration_year = @account.credit_card.expiration_year
  end

  def update
    @account = current_account
    if @account.save_customer_and_subscription!(params[:account])
      redirect_to account_billing_path(@account), :notice => t('.update.notice', :default => "Billing information updated successfully")
    else
      render :edit
    end
  end
end

Version data entries

62 entries across 62 versions & 2 rubygems

Version Path
saucy-0.10.10 app/controllers/billings_controller.rb
saucy-0.13.3 app/controllers/billings_controller.rb
saucy-0.13.2 app/controllers/billings_controller.rb
saucy-0.10.9 app/controllers/billings_controller.rb
saucy-0.10.8 app/controllers/billings_controller.rb
saucy-0.13.1 app/controllers/billings_controller.rb
saucy-0.13.0 app/controllers/billings_controller.rb
saucy-0.12.5 app/controllers/billings_controller.rb
saucy-0.12.4 app/controllers/billings_controller.rb
saucy-0.12.3 app/controllers/billings_controller.rb
saucy-0.12.2 app/controllers/billings_controller.rb
saucy-0.12.1 app/controllers/billings_controller.rb
saucy-0.12.0 app/controllers/billings_controller.rb
saucy-0.11.5 app/controllers/billings_controller.rb
saucy-0.11.3 app/controllers/billings_controller.rb
saucy-0.11.2 app/controllers/billings_controller.rb
saucy-0.10.7 app/controllers/billings_controller.rb
saucy-0.10.6 app/controllers/billings_controller.rb
saucy-0.10.5 app/controllers/billings_controller.rb
saucy-0.10.4 app/controllers/billings_controller.rb