Sha256: bfd0c3ae30cbdbc6cefe871de9e68eec01d48a404f6430387b48dc17d58c8411
Contents?: true
Size: 723 Bytes
Versions: 25
Compression:
Stored size: 723 Bytes
Contents
class BillingsController < ApplicationController before_filter :authorize_admin, :except => [:show] 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
25 entries across 25 versions & 1 rubygems