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.5.4 app/controllers/billings_controller.rb
saucy-0.5.3 app/controllers/billings_controller.rb
saucy-0.5.2 app/controllers/billings_controller.rb
saucy-0.5.1 app/controllers/billings_controller.rb
saucy-0.5.0 app/controllers/billings_controller.rb
saucy-0.4.10 app/controllers/billings_controller.rb
saucy-0.4.9 app/controllers/billings_controller.rb
saucy-0.4.8 app/controllers/billings_controller.rb
saucy-0.4.7 app/controllers/billings_controller.rb
saucy-0.4.6 app/controllers/billings_controller.rb
saucy-0.4.5 app/controllers/billings_controller.rb
saucy-0.4.4 app/controllers/billings_controller.rb
saucy-0.4.3 app/controllers/billings_controller.rb
saucy-0.4.2 app/controllers/billings_controller.rb
saucy-0.4.1 app/controllers/billings_controller.rb
saucy-0.3.4.1 app/controllers/billings_controller.rb
saucy-0.4.0 app/controllers/billings_controller.rb
saucy-0.3.4 app/controllers/billings_controller.rb
saucy-0.3.3 app/controllers/billings_controller.rb
saucy-0.3.2 app/controllers/billings_controller.rb