Sha256: d4c6544597362c516ab079a36c3dcf77097dda2ce2ffdc4d560eedf0eec2c969
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
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 @account.street_address = @account.billing_address.street_address @account.extended_address = @account.billing_address.extended_address @account.locality = @account.billing_address.locality @account.region = @account.billing_address.region @account.postal_code = @account.billing_address.postal_code @account.country_name = @account.billing_address.country_name 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.14.1 | app/controllers/billings_controller.rb |
saucy-0.14.0 | app/controllers/billings_controller.rb |